ArduSub: fix long booting

This commit is contained in:
Wiktor Maslowski 2022-11-20 15:03:23 +01:00 committed by Randy Mackay
parent 72391d3649
commit ec2d5d0756
1 changed files with 1 additions and 4 deletions

View File

@ -752,10 +752,7 @@ void Sub::convert_old_parameters()
{ Parameters::k_param_attitude_control, 386, AP_PARAM_FLOAT, "ATC_RAT_PIT_FLTE" },
{ Parameters::k_param_attitude_control, 387, AP_PARAM_FLOAT, "ATC_RAT_YAW_FLTE" },
};
uint8_t filt_table_size = ARRAY_SIZE(filt_conversion_info);
for (uint8_t i=0; i<filt_table_size; i++) {
AP_Param::convert_old_parameters(&filt_conversion_info[i], 1.0f);
}
AP_Param::convert_old_parameters(&filt_conversion_info[0], ARRAY_SIZE(filt_conversion_info));
SRV_Channels::upgrade_parameters();
}