← All tools

Message & Error Explainer

What an ArduPilot message means and what to do about it

Українська

The aircraft is close to a fence

WarningMissions, fence, rally points, terrain4.7 only

What ArduPilot says:

The aircraft is still inside the fence but closer to it than the margin, and the line gives the distance left: “Max Alt fence in 1.5m”. It is sent only when FENCE_OPTIONS bit 2 (notify on margin breaches) is set, FENCE_NTF_FREQ times a second (1 by default; 0 means once for each approach). The margin is FENCE_MARGIN, and for the circle and the drawn fences FENCE_MARGIN_XY when that is above 0. “… cleared margin breach” follows when the aircraft is farther from the fence than the margin again.

What to do, most likely first

  1. The flight is heading for the fence.

    FixTurn back or change height now. If the distance reaches 0 the fence is breached and FENCE_ACTION takes over.

  2. A planned route runs along the fence, closer to it than the margin.

    CheckThe line repeats along one leg of the mission and clears on the next.

    FixPlan the route farther inside, or draw the fence with more room around the route.

Parameters to look at

ParameterWhat it is
FENCE_OPTIONSFence options
FENCE_MARGINFence Margin
FENCE_MARGIN_XYFence Horizontal Margin
FENCE_NTF_FREQFence margin notification frequency in hz
FENCE_ACTIONFence Action
The code that sends it

… in N.Nm

libraries/AC_Fence/AC_Fence.cpp AC_Fence::record_margin_breach() · Open in ArduPilot Copter-4.7.1

Written here for Copter 4.7. 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