mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 02:13:34 +08:00
Mission: fix float to double conversion when setting lat/lon to NAN
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
49c363674a
commit
9bdf09a300
@@ -1461,8 +1461,8 @@ Mission::do_abort_landing()
|
||||
// XXX: this is a hack to invalidate the "next" position setpoint for the fixed-wing position controller during
|
||||
// the landing abort hold. otherwise, the "next" setpoint would still register as a "LAND" point, and trigger
|
||||
// the early landing configuration (flaps and landing airspeed) during the hold.
|
||||
_navigator->get_position_setpoint_triplet()->next.lat = NAN;
|
||||
_navigator->get_position_setpoint_triplet()->next.lon = NAN;
|
||||
_navigator->get_position_setpoint_triplet()->next.lat = (double)NAN;
|
||||
_navigator->get_position_setpoint_triplet()->next.lon = (double)NAN;
|
||||
_navigator->get_position_setpoint_triplet()->next.alt = NAN;
|
||||
|
||||
publish_navigator_mission_item(); // for logging
|
||||
|
||||
Reference in New Issue
Block a user