precland: set the previous position setpoint to invalid, in the position setpoint triplet

This commit is contained in:
Dusan Zivkovic
2019-10-24 15:41:42 +02:00
committed by Julian Oes
parent 7eee9deb4c
commit 1f57d63503
+1
View File
@@ -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) {