mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Mission: Allow Param4 to be uploaded with NaN
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
This commit is contained in:
parent
43bc80ab59
commit
9924462618
@ -964,6 +964,9 @@ MAV_MISSION_RESULT AP_Mission::sanity_check_params(const mavlink_mission_item_in
|
||||
case MAV_CMD_NAV_WAYPOINT:
|
||||
nan_mask = ~(1 << 3); // param 4 can be nan
|
||||
break;
|
||||
case MAV_CMD_NAV_LOITER_UNLIM:
|
||||
nan_mask = ~(1 << 3); // param 4 can be nan
|
||||
break;
|
||||
case MAV_CMD_NAV_LAND:
|
||||
nan_mask = ~(1 << 3); // param 4 can be nan
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user