Skip to content
Snippets Groups Projects
Commit 5b5d5ac6 authored by Matthias Grob's avatar Matthias Grob
Browse files

mc_pos_control: let orbit task do its work

parent 34fb52d8
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment