navigator: don't say triplet is valid in ALTCTL

This commit is contained in:
Julian Oes 2014-06-10 14:25:23 +02:00
parent d3f182d433
commit fab1b4e366
1 changed files with 8 additions and 0 deletions

View File

@ -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;