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

AP_Mission: Allow Param4 to be uploaded with NaN #27482

Conversation

joshanne
Copy link
Contributor

@joshanne joshanne commented Jul 8, 2024

By default, QGroundControl will attempt to upload Loiter Unlimited with a NaN in param4.
Given this field could be NaN, we allow it through the parser.

See Param4 in https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LOITER_UNLIM

@peterbarker
Copy link
Contributor

Presumably we don't actually manage to store NaN, and we always ignore this field?

I guess technically that means we should be bouncing any attempt to upload a waypoint without this field? I'm not suggesting we make that change as it will break vast amounts of stuff...

@joshanne
Copy link
Contributor Author

joshanne commented Jul 8, 2024

AP doesn't currently make use of that field - it is not stored.

At the moment, any mission containing LOITER_UNLIM must have a non-nan p4 field for the mission upload to succeed. MAVLink specification allows for that particular field in the message to be nan

There is possibly other waypoint types that may cause an entire mission to upload if the users selected ground station does not support the AP implementation of those messages.

By default, QGroundControl will attempt to upload Loiter Unlimited with a NaN in param4.
Given this field could be NaN, we allow it through the parser.

See: https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LOITER_UNLIM
@peterbarker peterbarker force-pushed the pr/allow_loiter_unlimited_with_nan_in_param_4 branch from f4d37f2 to 1a66511 Compare July 9, 2024 11:05
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased this on top of CI fixes, marking as MergeOnCIPass

@peterbarker peterbarker merged commit 9924462 into ArduPilot:master Jul 9, 2024
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants