Copter: make conversion tables constant
This commit is contained in:
parent
a56090113c
commit
a3220944d8
@ -1083,7 +1083,7 @@ void Copter::load_parameters(void)
|
||||
void Copter::convert_pid_parameters(void)
|
||||
{
|
||||
// conversion info
|
||||
AP_Param::ConversionInfo pid_conversion_info[] = {
|
||||
const AP_Param::ConversionInfo pid_conversion_info[] = {
|
||||
{ Parameters::k_param_pid_rate_roll, 0, AP_PARAM_FLOAT, "ATC_RAT_RLL_P" },
|
||||
{ Parameters::k_param_pid_rate_roll, 1, AP_PARAM_FLOAT, "ATC_RAT_RLL_I" },
|
||||
{ Parameters::k_param_pid_rate_roll, 2, AP_PARAM_FLOAT, "ATC_RAT_RLL_D" },
|
||||
@ -1099,7 +1099,7 @@ void Copter::convert_pid_parameters(void)
|
||||
{ Parameters::k_param_pid_rate_yaw , 4, AP_PARAM_FLOAT, "ATC_RAT_YAW_VFF" },
|
||||
#endif
|
||||
};
|
||||
AP_Param::ConversionInfo imax_conversion_info[] = {
|
||||
const AP_Param::ConversionInfo imax_conversion_info[] = {
|
||||
{ Parameters::k_param_pid_rate_roll, 5, AP_PARAM_FLOAT, "ATC_RAT_RLL_IMAX" },
|
||||
{ Parameters::k_param_pid_rate_pitch, 5, AP_PARAM_FLOAT, "ATC_RAT_PIT_IMAX" },
|
||||
{ Parameters::k_param_pid_rate_yaw, 5, AP_PARAM_FLOAT, "ATC_RAT_YAW_IMAX" },
|
||||
@ -1109,7 +1109,7 @@ void Copter::convert_pid_parameters(void)
|
||||
{ Parameters::k_param_pid_rate_yaw, 7, AP_PARAM_FLOAT, "ATC_RAT_YAW_ILMI" },
|
||||
#endif
|
||||
};
|
||||
AP_Param::ConversionInfo angle_and_filt_conversion_info[] = {
|
||||
const AP_Param::ConversionInfo angle_and_filt_conversion_info[] = {
|
||||
{ Parameters::k_param_p_stabilize_roll, 0, AP_PARAM_FLOAT, "ATC_ANG_RLL_P" },
|
||||
{ Parameters::k_param_p_stabilize_pitch, 0, AP_PARAM_FLOAT, "ATC_ANG_PIT_P" },
|
||||
{ Parameters::k_param_p_stabilize_yaw, 0, AP_PARAM_FLOAT, "ATC_ANG_YAW_P" },
|
||||
@ -1117,7 +1117,7 @@ void Copter::convert_pid_parameters(void)
|
||||
{ Parameters::k_param_pid_rate_pitch, 6, AP_PARAM_FLOAT, "ATC_RAT_PIT_FILT" },
|
||||
{ Parameters::k_param_pid_rate_yaw, 6, AP_PARAM_FLOAT, "ATC_RAT_YAW_FILT" }
|
||||
};
|
||||
AP_Param::ConversionInfo throttle_conversion_info[] = {
|
||||
const AP_Param::ConversionInfo throttle_conversion_info[] = {
|
||||
{ Parameters::k_param_throttle_min, 0, AP_PARAM_FLOAT, "MOT_SPIN_MIN" },
|
||||
{ Parameters::k_param_throttle_mid, 0, AP_PARAM_FLOAT, "MOT_THST_HOVER" }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user