Search:

Type: Posts; User: mynameisnate

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    20,020

    and here's the complete code for taking apart a...

    and here's the complete code for taking apart a float and putting it back together:



    int breakDown(int index, unsigned char outbox[], float member)
    {
    unsigned long d = *(unsigned long...
  2. Replies
    12
    Views
    20,020

    Thanks, I just finished correcting the bit masks...

    Thanks, I just finished correcting the bit masks in my code before I saw this.
  3. Replies
    12
    Views
    20,020

    So if I understand yours and the above posts, my...

    So if I understand yours and the above posts, my code should look like:


    int SplitPacket(int index, unsigned char outbox[], float member)
    {
    unsigned char *d = (unsigned int *)&member;

    ...
  4. Replies
    12
    Views
    20,020

    Yeah, I did this algorithm with a union of my...

    Yeah, I did this algorithm with a union of my float struct and an array of unsigned char that made everything so much nicer. What I'm trying to do with this is show why the method you described is...
  5. Replies
    12
    Views
    20,020

    Floats to bytes and back again

    Hello All,

    I'm working on a program that takes a struct of floats, breaks them down into an array of uchar (byte array) then reassembles the struct from the data.

    How can I take a float...
  6. Packaging data into Bytes- help appreciated

    So I'm working on something right now at work trying to improve upon a system for taking a struct of floats, breaking it down into bytes, passing it around, and then reassembling the data.

    I've...
  7. Replies
    4
    Views
    1,624

    Holy crap, how did I miss that. That's what you...

    Holy crap, how did I miss that. That's what you get when you program while trying to comfort a sick 1 year-old in the middle of the night. Thanks Rags.
  8. Replies
    4
    Views
    1,624

    Problem with function identifiers-

    Hi all. I'm a mechanical engineer and new to this forum. I'm doing some refresher courses on C and am trying to figure out why my program is erroring out on me. I'd appreciate any help. The...
Results 1 to 8 of 8