mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:53:33 +08:00
navigator: don't say triplet is valid in ALTCTL
This commit is contained in:
@@ -381,6 +381,14 @@ Navigator::task_main()
|
|||||||
_loiter.reset();
|
_loiter.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if nothing is running, set position setpoint triplet invalid */
|
||||||
|
if (_navigation_mode == nullptr) {
|
||||||
|
_pos_sp_triplet.previous.valid = false;
|
||||||
|
_pos_sp_triplet.current.valid = false;
|
||||||
|
_pos_sp_triplet.next.valid = false;
|
||||||
|
_update_triplet = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (_update_triplet ) {
|
if (_update_triplet ) {
|
||||||
publish_position_setpoint_triplet();
|
publish_position_setpoint_triplet();
|
||||||
_update_triplet = false;
|
_update_triplet = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user