ArduCopter: remove unused old_top_element param from convert_class

This commit is contained in:
Peter Barker 2024-02-22 08:32:00 +11:00 committed by Peter Barker
parent f2e83081b2
commit 198f26f348

View File

@ -1354,21 +1354,21 @@ void Copter::load_parameters(void)
// PARAMETER_CONVERSION - Added: Mar-2022
#if AP_FENCE_ENABLED
AP_Param::convert_class(g.k_param_fence_old, &fence, fence.var_info, 0, 0, true);
AP_Param::convert_class(g.k_param_fence_old, &fence, fence.var_info, 0, true);
#endif
static const AP_Param::G2ObjectConversion g2_conversions[] {
#if AP_STATS_ENABLED
// PARAMETER_CONVERSION - Added: Jan-2024 for Copter-4.6
{ &stats, stats.var_info, 12, 4044 },
{ &stats, stats.var_info, 12 },
#endif
#if AP_SCRIPTING_ENABLED
// PARAMETER_CONVERSION - Added: Jan-2024 for Copter-4.6
{ &scripting, scripting.var_info, 30, 94 },
{ &scripting, scripting.var_info, 30 },
#endif
#if AP_GRIPPER_ENABLED
// PARAMETER_CONVERSION - Added: Feb-2024 for Copter-4.6
{ &gripper, gripper.var_info, 13, 4045},
{ &gripper, gripper.var_info, 13 },
#endif
};
@ -1376,7 +1376,7 @@ void Copter::load_parameters(void)
// PARAMETER_CONVERSION - Added: Feb-2024 for Copter-4.6
#if HAL_LOGGING_ENABLED
AP_Param::convert_class(g.k_param_logger, &logger, logger.var_info, 0, 0, true);
AP_Param::convert_class(g.k_param_logger, &logger, logger.var_info, 0, true);
#endif
// setup AP_Param frame type flags