Parameters: Added g.retro_loiter which is configurable by the user via the MP.

This commit is contained in:
Adam M Rivera 2012-04-23 00:17:52 -05:00
parent 788df5ed6f
commit ec06638db6
2 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,7 @@ public:
k_param_crosstrack_gain, k_param_crosstrack_gain,
k_param_auto_land_timeout, k_param_auto_land_timeout,
k_param_rtl_approach_alt, k_param_rtl_approach_alt,
k_param_retro_loiter,
// //
@ -213,6 +214,7 @@ public:
AP_Int8 super_simple; AP_Int8 super_simple;
AP_Int8 rtl_land_enabled; AP_Int8 rtl_land_enabled;
AP_Float rtl_approach_alt; AP_Float rtl_approach_alt;
AP_Int8 retro_loiter;
AP_Int8 axis_enabled; AP_Int8 axis_enabled;
AP_Int8 copter_leds_mode; // Operating mode of LED lighting system AP_Int8 copter_leds_mode; // Operating mode of LED lighting system
@ -334,6 +336,7 @@ public:
super_simple (SUPER_SIMPLE), super_simple (SUPER_SIMPLE),
rtl_land_enabled (RTL_AUTO_LAND), rtl_land_enabled (RTL_AUTO_LAND),
rtl_approach_alt (0.0), rtl_approach_alt (0.0),
retro_loiter (RETRO_LOITER_MODE),
axis_enabled (AXIS_LOCK_ENABLED), axis_enabled (AXIS_LOCK_ENABLED),
copter_leds_mode (0), copter_leds_mode (0),

View File

@ -34,6 +34,7 @@ static const AP_Param::Info var_info[] PROGMEM = {
GSCALAR(super_simple, "SUPER_SIMPLE"), GSCALAR(super_simple, "SUPER_SIMPLE"),
GSCALAR(rtl_land_enabled, "RTL_LAND"), GSCALAR(rtl_land_enabled, "RTL_LAND"),
GSCALAR(rtl_approach_alt, "APPROACH_ALT"), GSCALAR(rtl_approach_alt, "APPROACH_ALT"),
GSCALAR(retro_loiter, "RETRO_LOITER"),
GSCALAR(waypoint_mode, "WP_MODE"), GSCALAR(waypoint_mode, "WP_MODE"),