Params: Added toy_yate_rate

This commit is contained in:
Jason Short 2012-06-29 14:34:40 -07:00
parent 5e4d28baf0
commit 49401bffae
2 changed files with 18 additions and 11 deletions

View File

@ -58,6 +58,7 @@ public:
// //
k_param_log_bitmask = 20, k_param_log_bitmask = 20,
k_param_log_last_filenumber, // *** Deprecated - remove with next eeprom number change k_param_log_last_filenumber, // *** Deprecated - remove with next eeprom number change
k_param_toy_yaw_rate, // THOR The memory location for the Yaw Rate 1 = fast, 2 = med, 3 = slow
// //
// 80: Heli // 80: Heli
@ -256,7 +257,7 @@ public:
// //
AP_Int16 log_bitmask; AP_Int16 log_bitmask;
AP_Int16 log_last_filenumber; // *** Deprecated - remove with next eeprom number change AP_Int16 log_last_filenumber; // *** Deprecated - remove with next eeprom number change
AP_Int8 toy_yaw_rate; // THOR The Yaw Rate 1 = fast, 2 = med, 3 = slow
AP_Int8 esc_calibrate; AP_Int8 esc_calibrate;
AP_Int8 radio_tuning; AP_Int8 radio_tuning;
AP_Int16 radio_tuning_high; AP_Int16 radio_tuning_high;
@ -367,6 +368,8 @@ public:
log_bitmask (DEFAULT_LOG_BITMASK), log_bitmask (DEFAULT_LOG_BITMASK),
log_last_filenumber (0), log_last_filenumber (0),
toy_yaw_rate (2), // THOR The default Yaw Rate 1 = fast, 2 = med, 3 = slow
esc_calibrate (0), esc_calibrate (0),
radio_tuning (0), radio_tuning (0),
radio_tuning_high (1000), radio_tuning_high (1000),

View File

@ -128,6 +128,10 @@ static const AP_Param::Info var_info[] PROGMEM = {
GSCALAR(log_bitmask, "LOG_BITMASK"), GSCALAR(log_bitmask, "LOG_BITMASK"),
GSCALAR(log_last_filenumber, "LOG_LASTFILE"), GSCALAR(log_last_filenumber, "LOG_LASTFILE"),
// THOR
// Added to allow change of Rate in the Mission planner
GSCALAR(toy_yaw_rate, "TOY_RATE"),
GSCALAR(esc_calibrate, "ESC"), GSCALAR(esc_calibrate, "ESC"),
GSCALAR(radio_tuning, "TUNE"), GSCALAR(radio_tuning, "TUNE"),
GSCALAR(radio_tuning_low, "TUNE_LOW"), GSCALAR(radio_tuning_low, "TUNE_LOW"),