// @Description: Minimum Altitude. Zero to disable. Sets a "floor" that
// your vehicle will try to stay above. IF the vehicle is crossing the
// threshold at speed, it will take a while to recover, so give yourself
// enough room. Caution: minimum altitude limits can cause unexpected
// behaviour, such as inability to land, or sudden takeoff. Read the wiki
// instructions before setting.
// @Description: Minimum Altitude. Zero to disable. Sets a "floor" that your vehicle will try to stay above. IF the vehicle is crossing the threshold at speed, it will take a while to recover, so give yourself enough room. Caution: minimum altitude limits can cause unexpected behaviour, such as inability to land, or sudden takeoff. Read the wiki instructions before setting.
// @Description: Maximum Altitude. Zero to disable. Sets a "ceiling" that
// your vehicle will try to stay below. IF the vehicle is crossing the
// threshold at speed, it will take a while to recover.
// @Description: Maximum Altitude. Zero to disable. Sets a "ceiling" that your vehicle will try to stay below. IF the vehicle is crossing the threshold at speed, it will take a while to recover.
// @Description: "Simple" geofence (enabled - 1) is based on a radius from
// the home position, "Complex" (disabled - 0) define a complex fence by
// lat/long positions
// @Description: "Simple" geofence (enabled - 1) is based on a radius from the home position, "Complex" (disabled - 0) define a complex fence by lat/long positions
// @Description: Setting this to 1 will turn on debugging messages on the
// console and via MAVLink STATUSTEXT messages
// @Description: Setting this to 1 will turn on debugging messages on the console and via MAVLink STATUSTEXT messages
// @Values: 0:Disabled,1:Enabled
// @User: Standard
AP_GROUPINFO("DEBUG",2,AP_Limits,_debug,0),
// @Param: SAFETIME
// @DisplayName: Limits Safetime
// @Description: Automatic return of controls to pilot. Set to 0 to disable
// (full RTL) or a number of seconds after complete recovery to return the
// controls to the pilot in STABILIZE
// @Description: Automatic return of controls to pilot. Set to 0 to disable (full RTL) or a number of seconds after complete recovery to return the controls to the pilot in STABILIZE
// @Values: 0:Disabled,1-255:Seconds before returning control
// @User: Standard
AP_GROUPINFO("SAFETIME",3,AP_Limits,_safetime,0),
// @Param: CHANNEL
// @DisplayName: Limits Channel
// @Description: Channel for Limits on/off control. If channel exceeds
// LIMITS_ENABLE_PWM, it turns limits on, and vice-versa.
// @Description: Channel for Limits on/off control. If channel exceeds LIMITS_ENABLE_PWM, it turns limits on, and vice-versa.
// @Range: 1-8
// @User: Standard
AP_GROUPINFO("CHANNEL",4,AP_Limits,_channel,0),
// @Param: RECMODE
// @DisplayName: Limits Recovery Mode
// @Description: Select how Limits should "recover". Set to 0 for RTL-like
// mode, where the vehicle navigates back to home until it is "safe". Set
// to 1, for bounce-mode, where the vehicle will hold position when it hits
// a limit. RTL mode is better for large fenced areas, Bounce mode for
// smaller spaces. Note: RTL mode will cause the vehicle to yaw 180 degrees
// (turn around) to navigate towards home when it hits a limit.
// @Description: Select how Limits should "recover". Set to 0 for RTL-like mode, where the vehicle navigates back to home until it is "safe". Set to 1, for bounce-mode, where the vehicle will hold position when it hits a limit. RTL mode is better for large fenced areas, Bounce mode for smaller spaces. Note: RTL mode will cause the vehicle to yaw 180 degrees (turn around) to navigate towards home when it hits a limit.