-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Added better logic to encode NAN as INT16_MAX to transfer to IO from FMU #12745
Conversation
Style check file - please fix, rebase and squash, thanks! |
b49c941
to
c9391aa
Compare
Done. |
ef8efbd
to
0f61a45
Compare
changed px4io control check to isnan from not isfinite changed logic to isnan from NOT isfinite for NAN encoding style fix removed extra lines another style fix another style fix another style fix fixed some merge duplication style fixes
0f61a45
to
e18a101
Compare
Commenting to possibly reopen and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what happens when inf
or -inf
end up there?
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
I still wonder what happens if you end up with |
A follow up on PR #12743.
Changed logic to isnan() from !isfinite() to prevent INF or -INF getting encoded as NAN to the PX4IO.