|
|
@ -574,9 +574,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { |
|
|
|
|
|
|
|
|
|
|
|
// 32 to 36 were old sailboat params
|
|
|
|
// 32 to 36 were old sailboat params
|
|
|
|
|
|
|
|
|
|
|
|
// @Group: ARSPD
|
|
|
|
// 37 was airspeed
|
|
|
|
// @Path: ../libraries/AP_Airspeed/AP_Airspeed.cpp
|
|
|
|
|
|
|
|
AP_SUBGROUPINFO(airspeed, "ARSPD", 37, ParametersG2, AP_Airspeed), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @Param: MIS_DONE_BEHAVE
|
|
|
|
// @Param: MIS_DONE_BEHAVE
|
|
|
|
// @DisplayName: Mission done behave
|
|
|
|
// @DisplayName: Mission done behave
|
|
|
@ -711,7 +709,6 @@ ParametersG2::ParametersG2(void) |
|
|
|
avoid(), |
|
|
|
avoid(), |
|
|
|
follow(), |
|
|
|
follow(), |
|
|
|
windvane(), |
|
|
|
windvane(), |
|
|
|
airspeed(), |
|
|
|
|
|
|
|
wp_nav(attitude_control, rover.L1_controller), |
|
|
|
wp_nav(attitude_control, rover.L1_controller), |
|
|
|
sailboat() |
|
|
|
sailboat() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -843,4 +840,17 @@ void Rover::load_parameters(void) |
|
|
|
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON| |
|
|
|
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON| |
|
|
|
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED); |
|
|
|
AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PARAMETER_CONVERSION - Added: JAN-2022
|
|
|
|
|
|
|
|
#if AP_AIRSPEED_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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
} |
|
|
|
} |
|
|
|