forked from Archive/PX4-Autopilot
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…
Reference in New Issue