pprzlink icon indicating copy to clipboard operation
pprzlink copied to clipboard

Ensure correct endianness for pprzlink

Open podhrmic opened this issue 7 years ago • 0 comments

Based on my talk with @gautierhattenberger

pprzlink uses the host byte order, which is typically little endian for most autopilots. Conveniently, most computers are little-endian these days, so it works out. However, it would be good to ensure that the byte order is the same for both parties, or even better switch to network byte order for pprzlink to make this universal.

Possible solution: add hton*()/ntoh*() shims to the generated code.

I might get to this later in the year, hence assigning to myself.

podhrmic avatar Feb 03 '18 20:02 podhrmic