paparazzi / pprzlink

Message and communication library for the Paparazzi UAV system
Other
24 stars 55 forks source link

Ensure correct endianness for pprzlink #78

Open podhrmic opened 6 years ago

podhrmic commented 6 years ago

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.