Rally Points

Overview

Ordinarily when a plane or copter enters Return to Launch (RTL) mode (typically triggered by an autopilot failsafe), the default behaviour is to return to the Home point, but there are often cases when that can be undesirable. For example it may be an area full of people or property and a system running in RTL mode may very likely be in a state that merits extreme caution! It is also possible that the flight plan is large enough that should the aircraft enter RTL mode it is undesirable to traverse all the way back to the point of takeoff.

For this reason we now support the creation of multiple Rally Points. Should an aircraft enter RTL and Rally Points have been defined then it will proceed to the closest Rally Point, rather than proceeding to the Home position. Plane will then loiter at that location, and Copter will perform an automated landing there.

../_images/mp_flight_plan_with_three_rally_points.jpg

A flight plan with Rally Points. Rally Points are denoted with Purpleplace markers. Mousing over a Rally Point will give its loiter altitude(as in the middle point above).

Setting Up Rally Points

The following steps are for specifying Rally Points in Mission Planner:

  1. Rally Point latitude and longitude.To set a Rally Point’s location, right click on the Flight Plan map, and select Rally Points > Set Rally Point on the resulting pop-up menu (note that this ONLY work in the Flight Plan screen, not the Flight Data screen):

    ../_images/mp_rally_point_dialog.jpg
  2. The Rally loiter altitudes need to be specified (note that the default altitude for Rally Points is the default waypoint altitude value and is relative to the home location):

    ../_images/mp_rally_altitude_dialog.jpg ../_images/defaultAltCircled1.png
  3. Repeat for all desired Rally points!

  4. Upload to the vehicle by selecting Rally Points > Upload from the right-click popup menu

The following should be considered when using Rally Points:

  1. If using a geofence: its HIGHLY recommended the Rally Points you intend to use at your event are inside the geofence.

  2. Make sure Rally Point altitudes are high enough to clear terrain and buildings.

  3. Because of the limited flash memory size on the APM2.x hardware the number of Rally Points is restricted to 10 on Plane and 6 on Copter – this limit may be expanded on other platforms such as Pixhawk in the future.

  4. On Plane, loiter radius for a Rally Point is the same as all other loiter points; determined by the WP_LOITER_RAD parameter.

  5. The RTL_ALTITUDE or RTL_ALT parameters are NOT used with Rally Points! The aircraft will transit to the Rally Point at the altitude specified when adding that point.

The following MAVLink parameters control Rally Point behavior:

  1. RALLY_LIMIT_KM is the maximum distance a Rally Point may be from the aircraft to be considered for an RTL event. If all Rally Points are greater than this distance from the aircraft, then the Home location is used for RTL events (at altitude RTL_ALTITUDE) This parameter is to prevent fly offs if Rally Points have been specified for multiple flying fields. This parameter can be disabled if set to 0.

  2. RALLY_INCL_HOME allows Home to be included in the RALLY points, allowing it to return to home if closer than any RALLY point.

  3. RALLY_TOTAL is the number of Rally Points currently specified. This parameter will be set for you by your ground control station (e.g., Mission Planner) when you add and remove Rally Points. IT IS HIGHLY UNLIKELY YOU WANT TO SET THIS PARAMETER MANUALLY AND IT IS PROBABLY UNSAFE TO DO SO. RALLY_TOTAL should be 0 if you have specified no Rally Points and in this case the Home location will be used for RTL events.

Example Flight

../_images/mp_rally_demo.jpg

Flight in which RTL was commanded nearwaypoint. Plane began loitering about the southernmost RallyPoint.

../_images/mp_rally_point_dialog.jpg

Appendix

The RALLY fields present in a rally point file are as follows:

  • Lat: Latitude of Rally Point

  • Lon: Longitude of Rally Point

  • Alt: AGL altitude of Rally Point.

  • Altitude Reference Frame: for ALT value: Relative to Home, above Terrain, or Absolute ASL.