← All tools

Message & Error Explainer

What an ArduPilot message means and what to do about it

Українська

Mode changes are locked while the copter recovers from a fence breach

Stops itFlight modesCopter only

What ArduPilot says:

The copter crossed a fence, the fence put it into its recovery mode (RTL, Land, Brake or SmartRTL), and FENCE_OPTIONS bit 0 forbids leaving that mode until the copter is back inside the fence or has landed. The mode you asked for is refused.

What to do, most likely first

  1. It is what FENCE_OPTIONS bit 0 asks for: the pilot may not override the fence.

    FixLet the recovery finish. Decide before the flight whether the pilot should be able to take over during a breach: with bit 0 clear, a mode change gives 10 s before the fence acts again.

Parameters to look at

ParameterWhat it is
FENCE_OPTIONSFence options
FENCE_ACTIONFence Action
FENCE_ENABLEFence enable/disable
The code that sends it

in fence recovery

ArduCopter/mode.cpp Copter::set_mode() · Open in ArduPilot Copter-4.7.1

Written here for Copter 4.6. In the tool you choose your vehicle and version, see your own parameter values beside the ones named here, and drop a flight log to have every message in it explained.

Open it in the Message & Error Explainer