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

Added better logic to encode NAN as INT16_MAX to transfer to IO from FMU #12745

Closed
wants to merge 1 commit into from

Conversation

dlwalter
Copy link
Contributor

A follow up on PR #12743.

Changed logic to isnan() from !isfinite() to prevent INF or -INF getting encoded as NAN to the PX4IO.

LorenzMeier
LorenzMeier previously approved these changes Aug 19, 2019
@LorenzMeier
Copy link
Member

Style check file - please fix, rebase and squash, thanks!
http://ci.px4.io:8080/blue/organizations/jenkins/PX4%2FFirmware/detail/PR-12745/1/pipeline

@dlwalter
Copy link
Contributor Author

Style check file - please fix, rebase and squash, thanks!

Done.

@dlwalter dlwalter force-pushed the pr-nans-fmu-to-io branch 2 times, most recently from ef8efbd to 0f61a45 Compare August 28, 2019 18:00
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
@dlwalter
Copy link
Contributor Author

dlwalter commented Sep 9, 2019

Commenting to possibly reopen and merge.

Copy link
Contributor

@julianoes julianoes left a 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?

@stale
Copy link

stale bot commented Dec 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@julianoes
Copy link
Contributor

I still wonder what happens if you end up with inf or -inf. I'll close this, please re-open if you still want this in.

@julianoes julianoes closed this Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants