Skip to content
Snippets Groups Projects
Commit 3ce005a4 authored by Randy Mackay's avatar Randy Mackay
Browse files

Copter: GPS Failsafe switch to LAND if circular fence enabled

parent 4fd4ef34
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,11 @@ static void failsafe_gps_check()
// take action based on flight mode
if(mode_requires_GPS(control_mode))
set_mode(LAND);
// land if circular fence is enabled
if((fence.get_enabled_fences() & AC_FENCE_TYPE_CIRCLE) != 0) {
set_mode(LAND);
}
}
// failsafe_gps_off_event - actions to take when GPS contact is restored
......
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