mirror of https://github.com/ArduPilot/ardupilot
Plane: consider nan as zero in DO_REPOSITION
QGC's interfaces want to send nan for these parameters
This commit is contained in:
parent
e5613de586
commit
7961eb6045
|
@ -804,7 +804,7 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_int_do_reposition(const mavlink_com
|
|||
return MAV_RESULT_DENIED;
|
||||
}
|
||||
|
||||
if (is_zero(packet.param4)) {
|
||||
if (isnan(packet.param4) || is_zero(packet.param4)) {
|
||||
requested_position.loiter_ccw = 0;
|
||||
} else {
|
||||
requested_position.loiter_ccw = 1;
|
||||
|
|
Loading…
Reference in New Issue