navigator: add ModeCompleted signalling topic

This commit is contained in:
Beat Küng
2023-02-07 19:11:52 -05:00
committed by Daniel Agar
parent f05e8a699e
commit 3f2336af32
9 changed files with 34 additions and 1 deletions
+2 -1
View File
@@ -149,9 +149,10 @@ VtolTakeoff::on_active()
_navigator->reset_position_setpoint(reposition_triplet->current);
_navigator->reset_position_setpoint(reposition_triplet->next);
// the VTOL takeoff is done, proceed loitering and update the navigation state to LOITER
// the VTOL takeoff is done
_navigator->get_mission_result()->finished = true;
_navigator->set_mission_result_updated();
_navigator->mode_completed(vehicle_status_s::NAVIGATION_STATE_AUTO_VTOL_TAKEOFF);
break;
}