mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 21: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
@@ -51,7 +51,7 @@
|
||||
using namespace math;
|
||||
|
||||
RtlDirect::RtlDirect(Navigator *navigator) :
|
||||
MissionBlock(navigator),
|
||||
MissionBlock(navigator, vehicle_status_s::NAVIGATION_STATE_AUTO_RTL),
|
||||
ModuleParams(navigator)
|
||||
{
|
||||
_destination.lat = static_cast<double>(NAN);
|
||||
@@ -318,7 +318,7 @@ void RtlDirect::set_rtl_item()
|
||||
|
||||
case RTLState::IDLE: {
|
||||
set_idle_item(&_mission_item);
|
||||
_navigator->mode_completed(vehicle_status_s::NAVIGATION_STATE_AUTO_RTL);
|
||||
_navigator->mode_completed(getNavigatorStateId());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user