mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 09:53: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 @@
|
||||
#include <px4_platform_common/events.h>
|
||||
|
||||
Takeoff::Takeoff(Navigator *navigator) :
|
||||
MissionBlock(navigator)
|
||||
MissionBlock(navigator, vehicle_status_s::NAVIGATION_STATE_AUTO_TAKEOFF)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ Takeoff::on_active()
|
||||
} else if (is_mission_item_reached_or_completed() && !_navigator->get_mission_result()->finished) {
|
||||
_navigator->get_mission_result()->finished = true;
|
||||
_navigator->set_mission_result_updated();
|
||||
_navigator->mode_completed(vehicle_status_s::NAVIGATION_STATE_AUTO_TAKEOFF);
|
||||
_navigator->mode_completed(getNavigatorStateId());
|
||||
|
||||
position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user