mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00: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