AP_Param: add comments around G2 parameter conversion

This commit is contained in:
Peter Barker 2024-02-27 10:51:19 +11:00 committed by Peter Barker
parent 9aa6193568
commit 079ffb4a40
2 changed files with 4 additions and 0 deletions

View File

@ -2072,6 +2072,8 @@ void AP_Param::convert_class(uint16_t param_key, void *object_pointer,
flush();
}
// convert an object which was stored in a vehicle's G2 into a new
// object in AP_Vehicle.cpp:
void AP_Param::convert_g2_objects(const void *g2, const G2ObjectConversion g2_conversions[], uint8_t num_conversions)
{
// Find G2's Top Level Key

View File

@ -472,6 +472,8 @@ public:
// convert old vehicle parameters to new object parameters with scaling - assumes we use the same scaling factor for all values in the table
static void convert_old_parameters_scaled(const ConversionInfo *conversion_table, uint8_t table_size, float scaler, uint8_t flags);
// convert an object which was stored in a vehicle's G2 into a new
// object in AP_Vehicle.cpp:
struct G2ObjectConversion {
void *object_pointer;
const struct AP_Param::GroupInfo *var_info;