mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 05:43:34 +08:00
mc_pos_control: let orbit task do its work
This commit is contained in:
@@ -301,6 +301,7 @@ private:
|
||||
* check if task should be switched because of failsafe
|
||||
*/
|
||||
void check_failure(bool task_failure, uint8_t nav_state);
|
||||
|
||||
/**
|
||||
* send vehicle command to inform commander about failsafe
|
||||
*/
|
||||
@@ -996,6 +997,10 @@ MulticopterPositionControl::start_flight_task()
|
||||
}
|
||||
}
|
||||
|
||||
if (_vehicle_status.nav_state == vehicle_status_s::NAVIGATION_STATE_ORBIT) {
|
||||
should_disable_task = false;
|
||||
}
|
||||
|
||||
// check task failure
|
||||
if (task_failure) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user