|
|
|
@ -1548,6 +1548,20 @@ void Copter::convert_tradheli_parameters(void)
@@ -1548,6 +1548,20 @@ void Copter::convert_tradheli_parameters(void)
|
|
|
|
|
AP_Param::set_and_save_by_name("H_TAIL_SPEED", tailspeed_pct ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// table of stabilize collective parameters to be converted with scaling
|
|
|
|
|
const AP_Param::ConversionInfo collhelipct_conversion_info[] = { |
|
|
|
|
{ Parameters::k_param_input_manager, 1, AP_PARAM_INT16, "IM_STB_COL_1" }, |
|
|
|
|
{ Parameters::k_param_input_manager, 2, AP_PARAM_INT16, "IM_STB_COL_2" }, |
|
|
|
|
{ Parameters::k_param_input_manager, 3, AP_PARAM_INT16, "IM_STB_COL_3" }, |
|
|
|
|
{ Parameters::k_param_input_manager, 4, AP_PARAM_INT16, "IM_STB_COL_4" }, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// convert stabilize collective parameters with scaling
|
|
|
|
|
table_size = ARRAY_SIZE(collhelipct_conversion_info); |
|
|
|
|
for (uint8_t i=0; i<table_size; i++) { |
|
|
|
|
AP_Param::convert_old_parameter(&collhelipct_conversion_info[i], 0.1f); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|