mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:13:34 +08:00
Navigator: remove deprecated _can_loiter_at_sp and _need_takeoff
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -181,12 +181,5 @@ Takeoff::set_takeoff_position()
|
||||
memset(rep, 0, sizeof(*rep));
|
||||
}
|
||||
|
||||
if (PX4_ISFINITE(pos_sp_triplet->current.lat) && PX4_ISFINITE(pos_sp_triplet->current.lon)) {
|
||||
_navigator->set_can_loiter_at_sp(true);
|
||||
|
||||
} else {
|
||||
_navigator->set_can_loiter_at_sp(false);
|
||||
}
|
||||
|
||||
_navigator->set_position_setpoint_triplet_updated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user