I have a Lua script that adds two parameter tables, with multiple parameters each.
The code has been implemented for several months and works fine. However…
What I don’t like about it is that when I implemented the code I used arbitrarily chosen values for the table key. In my case table keys 176 and 177 (I don’t remember why I even chose those values).
I’ve read all I can find on the subject (e.g, info at this link Accessing/Adding Parameters via Scripts — Copter documentation, along with any discourse topics that mention add_table method, etc). I also reviewed the code within the add_table method of AP_Param.cpp
I’ve yet to come across any info that provides guidance on making an objective decision on choosing a table_key. Why does the example in the Ardupilot Copter docs use table_key 72?
Is there a reason to not just start at table_key 1 and increment by 1 for each additional table?