|
|
|
@ -650,12 +650,6 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
@@ -650,12 +650,6 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
|
|
|
|
AP_SUBGROUPINFO(torqeedo, "TRQD_", 49, ParametersG2, AP_Torqeedo), |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if HAL_AIS_ENABLED |
|
|
|
|
// @Group: AIS_
|
|
|
|
|
// @Path: ../libraries/AP_AIS/AP_AIS.cpp
|
|
|
|
|
AP_SUBGROUPINFO(ais, "AIS_", 50, ParametersG2, AP_AIS), |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// @Group: PSC
|
|
|
|
|
// @Path: ../libraries/APM_Control/AR_PosControl.cpp
|
|
|
|
|
AP_SUBGROUPINFO(pos_control, "PSC", 51, ParametersG2, AR_PosControl), |
|
|
|
@ -852,16 +846,23 @@ void Rover::load_parameters(void)
@@ -852,16 +846,23 @@ void Rover::load_parameters(void)
|
|
|
|
|
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// PARAMETER_CONVERSION - Added: JAN-2022
|
|
|
|
|
#if AP_AIRSPEED_ENABLED |
|
|
|
|
#if AP_AIRSPEED_ENABLED | AP_AIS_ENABLED |
|
|
|
|
// Find G2's Top Level Key
|
|
|
|
|
AP_Param::ConversionInfo info; |
|
|
|
|
if (!AP_Param::find_top_level_key_by_pointer(&g2, info.old_key)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// PARAMETER_CONVERSION - Added: JAN-2022
|
|
|
|
|
#if AP_AIRSPEED_ENABLED |
|
|
|
|
const uint16_t old_index = 37; // Old parameter index in the tree
|
|
|
|
|
const uint16_t old_top_element = 4069; // Old group element in the tree for the first subgroup element
|
|
|
|
|
AP_Param::convert_class(info.old_key, &airspeed, airspeed.var_info, old_index, old_top_element, false); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// PARAMETER_CONVERSION - Added: MAR-2022
|
|
|
|
|
#if AP_AIS_ENABLED |
|
|
|
|
AP_Param::convert_class(info.old_key, &ais, ais.var_info, 50, 114, false); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|