The fence is switched on, but no fence exists
What ArduPilot says:
- Fences enabled, but none selected
FENCE_ENABLE is 1, but FENCE_TYPE selects no fence that exists. FENCE_TYPE is a set of bits: bit 0 (value 1) maximum altitude, bit 1 (value 2) a circle around home, bit 2 (value 4) polygons and circles drawn in the ground station, bit 3 (value 8) minimum altitude. The drawn fences count only when at least one has been uploaded to the aircraft.
What to do, most likely first
FENCE_TYPEis 4 (drawn fences only, which is Plane's default) and no polygon or circle has been uploaded.CheckRead the fence from the aircraft in the ground station's Plan screen: it comes back empty.
FixDraw an inclusion polygon around the flying area and write it to the aircraft. Or add other types to
FENCE_TYPE: 1 for a maximum altitude, 2 for a circle around home.FENCE_TYPEis 0: no type is selected.FixChoose the types you want. Copter's default
FENCE_TYPEis 7: maximum altitude, circle and drawn fences together.
Parameters to look at
| Parameter | What it is |
|---|---|
FENCE_ENABLE | Fence enable/disable |
FENCE_TYPE | Fence Type |
FENCE_TOTAL | Fence polygon point total |
Where to do it:Failsafe Explainer
The code that sends it
Fences enabled, but none selected
libraries/AC_Fence/AC_Fence.cpp AC_Fence::pre_arm_check() · Open in ArduPilot Copter-4.7.1