Polygon Fence

Overview

Copter 3.4 (and higher) include support for a polygon fence with up to 84 points. The purpose of this fence is to attempt to stop your vehicle from flying out of the polygon by initiating an RTL or, if flying in Loiter mode, the vehicle will normally stop before breaching the fence. This feature is an extension of the simpler circular fence.

Note

The Polygon fence was introduced in Copter 3.4.

Enabling the Fence in Mission Planner

  • Connect your Flight controller to the Mission Planner

  • Go to the Config/Tuning | GeoFence screen

  • Click “Enable” and set Type to “All” or another option that includes “Polygon”

    ../_images/polygon_fence_enable.png
  • Leave the Action as “RTL or Land”

  • Go to the Flight Plan screen

  • Right-mouse-button click on the map and select “Draw Polygon” >> “Add Polygon Point”

  • Click on other points on the map to define the polygon

    ../_images/polygon_add_point.png
  • After the polygon has been defined you must Right-mouse-button click and “Draw Polygon” >> “Set Return Location”. This location is not actually used by copter but it must be set because the same underlying library is used as Plane.

    ../_images/polygon_add_return_point.png
  • Upload the polygon fence to the vehicle using Right-mouse-button click and “Geo Fence” >> “Upload”

    ../_images/polygon_upload.png

Combining with the Circular and Altitude fences

The polygon fence can be used in combination with the circular and altitude fences and the failsafe behaviour (i.e. stop at the fence or RTL) will trigger at whichever barrier the vehicle reaches first (i.e. the green line shown below)

../_images/copter_polygon_circular_fence..png

Please see the circular fence page for additional warnings and instructions including how to enable/disable the fence with the ch7/ch8 auxiliary switches.