mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Parameter conversion tables whose entries all share an old key found at runtime (e.g. via find_top_level_key_by_pointer()) cannot be constant if the key is stored in each entry, so a static table is initialised at runtime and kept in RAM. Adding a ConversionInfoNoKey table type plus convert_old_parameters() and convert_old_parameters_scaled() overloads which take the key separately allows these tables to be placed in .rodata.