Skip to content
Snippets Groups Projects
Commit 7d89c534 authored by Michael Day's avatar Michael Day
Browse files

Copter: fence now ignored in manual modes

parent b59e9347
Branches livefly
No related merge requests found
...@@ -22,6 +22,13 @@ void Copter::fence_check() ...@@ -22,6 +22,13 @@ void Copter::fence_check()
return; return;
} }
#if AP_ACS_USE == TRUE
//ignore fence in manual modes
if (control_mode == STABILIZE || control_mode == ALT_HOLD || control_mode == DRIFT) {
return;
}
#endif
// if there is a new breach take action // if there is a new breach take action
if( new_breaches != AC_FENCE_TYPE_NONE ) { if( new_breaches != AC_FENCE_TYPE_NONE ) {
......
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