Smart RTL Mode

When switched into Smart RTL, like regular RTL, the vehicle will attempt to return home. The “Smart” part of this mode is that it will retrace a safe path home instead of returning directly home. This can be useful if there are obstacles between the vehicle and the home position.


The vehicle must have a good position estimate (LEDs should be green) when the rover is armed or SmartRTL will be disabled. If the vehicle is armed without a good position estimate, “SmartRTL deactivated: bad position” will be sent to the ground station.

The path used to return home is captured in a buffer as the vehicle flies around in any other mode. The path is “simplified” (meaning curved paths are turned into a series of straight lines) and “pruned” (meaning loops are removed). The buffer is of a limited size (see below) and once it is full, “SmartRTL deactivated: buffer full” will appear on the ground stations’s HUD and the user will no longer be able to switch into this mode.

  • RTL_SPEED can be used to set the speed (in meters/second) at which the vehicle will return to home. By default this parameter is zero meaning the WP_SPEED or CRUISE_SPEED parameter values will be used.
  • SRTL_ACCURACY controls the accuracy (in meters) of the simplification and pruning performed. The simplify algorithm will turn curved paths into straight lines but the line should never be more than this distance from the original path. The pruning algorithm will cut paths that come within this many meters of each other.
  • SRTL_POINTS controls the maximum number of points that can be stored. Each additional 100 points requires about 3k of RAM.