mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
precland: set the previous position setpoint to invalid, in the position setpoint triplet
This commit is contained in:
committed by
Julian Oes
parent
7eee9deb4c
commit
1f57d63503
@@ -85,6 +85,7 @@ PrecLand::on_activation()
|
||||
position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
||||
|
||||
pos_sp_triplet->next.valid = false;
|
||||
pos_sp_triplet->previous.valid = false;
|
||||
|
||||
// Check that the current position setpoint is valid, otherwise land at current position
|
||||
if (!pos_sp_triplet->current.valid) {
|
||||
|
||||
Reference in New Issue
Block a user