diff --git a/libraries/AP_Param/AP_Param.cpp b/libraries/AP_Param/AP_Param.cpp index 57a8268495..4743bd4fbd 100644 --- a/libraries/AP_Param/AP_Param.cpp +++ b/libraries/AP_Param/AP_Param.cpp @@ -2072,6 +2072,20 @@ void AP_Param::convert_class(uint16_t param_key, void *object_pointer, flush(); } +void AP_Param::convert_g2_objects(const void *g2, const G2ObjectConversion g2_conversions[], uint8_t num_conversions) +{ + // Find G2's Top Level Key + ConversionInfo info; + if (!find_top_level_key_by_pointer(g2, info.old_key)) { + return; + } + for (uint8_t i=0; i