← All tools

Message & Error Explainer

What an ArduPilot message means and what to do about it

Українська

A ground station is using the old way of sending fences

WarningMissions, fence, rally points, terrain

What ArduPilot says:

Also explained here: 3 more
  • Invalid FENCE_TOTAL
  • Fence read failed
  • Invalid fence point, bad lat or lng

A ground station is reading or writing the fence with the old FENCE_POINT messages, which know only one polygon with a return point and keep the number of points in FENCE_TOTAL. ArduPilot found the request inconsistent: a FENCE_TOTAL from 1 to 4 (a fence sent this way has at least 5 points: the return point, three corners and the closing point), a point number at or beyond FENCE_TOTAL, a coordinate that cannot be real. “Vehicle contains advanced fences” means the stored fence has several areas or circles and cannot be read this way.

What to do, most likely first

  1. The ground station, or a script talking to the aircraft, is too old.

    FixUpdate it. Current ground stations send the fence together with the mission, as fence items in the Plan screen.

  2. FENCE_TOTAL was changed by hand or came with another aircraft's parameters.

    CheckFENCE_TOTAL is above 0 and below 5.

    FixDo not edit FENCE_TOTAL. Clear the fence from the ground station and upload it again.

4.7 is built without the old messages: there these lines cannot appear, and a ground station that still uses them gets no answer at all.

Parameters to look at

ParameterWhat it is
FENCE_TOTALFence polygon point total
The code that sends it

Invalid fence point, bad count (N vs N)

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

Invalid fence point, index past total(N >= N)

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

Vehicle contains advanced fences

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

Failed to get return point

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

And 5 more messages, sent from the same places.

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