mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 10:33:33 +08:00
navigator: add navigation state ID to every mode class
This commit is contained in:
committed by
Mathieu Bresciani
parent
dec550dcb9
commit
1fa878ad88
@@ -43,7 +43,7 @@
|
||||
using matrix::wrap_pi;
|
||||
|
||||
VtolTakeoff::VtolTakeoff(Navigator *navigator) :
|
||||
MissionBlock(navigator),
|
||||
MissionBlock(navigator, vehicle_status_s::NAVIGATION_STATE_AUTO_VTOL_TAKEOFF),
|
||||
ModuleParams(navigator)
|
||||
{
|
||||
}
|
||||
@@ -151,7 +151,7 @@ VtolTakeoff::on_active()
|
||||
// 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);
|
||||
_navigator->mode_completed(getNavigatorStateId());
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user