mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
navigator: don't say triplet is valid in ALTCTL
This commit is contained in:
parent
d3f182d433
commit
fab1b4e366
@ -381,6 +381,14 @@ Navigator::task_main()
|
||||
_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 ) {
|
||||
publish_position_setpoint_triplet();
|
||||
_update_triplet = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user