Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure correct endianness for pprzlink #78

Open
podhrmic opened this issue Feb 3, 2018 · 0 comments
Open

Ensure correct endianness for pprzlink #78

podhrmic opened this issue Feb 3, 2018 · 0 comments
Assignees

Comments

@podhrmic
Copy link
Member

podhrmic commented Feb 3, 2018

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 podhrmic self-assigned this Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant