Rover: fix long booting

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

View File

@ -870,10 +870,7 @@ void Rover::load_parameters(void)
{ Parameters::k_param_g2, 25354, AP_PARAM_FLOAT, "ATC_SAIL_FLTE" },
{ Parameters::k_param_g2, 29450, AP_PARAM_FLOAT, "ATC_SAIL_FF" },
};
uint8_t filt_table_size = ARRAY_SIZE(ff_and_filt_conversion_info);
for (uint8_t i=0; i<filt_table_size; i++) {
AP_Param::convert_old_parameters(&ff_and_filt_conversion_info[i], 1.0f);
}
AP_Param::convert_old_parameters(&ff_and_filt_conversion_info[0], ARRAY_SIZE(ff_and_filt_conversion_info));
// configure safety switch to allow stopping the motors while armed
#if HAL_HAVE_SAFETY_SWITCH