Commit Graph

136 Commits

Author SHA1 Message Date
Andrew Tridgell c496003740 AP_Param: added get_eeprom_full()
for arming check
2024-07-03 10:30:07 +09:00
Iampete1 8ec92052b1 AP_Param: add convert_bitmask_parameter_width method 2024-04-30 20:29:20 +09:00
Andrew Tridgell e2bccebfb8 AP_Param: fixed setting of defaults for dynamic param trees
when we load a VARPTR subtree we need to re-scan the parameter
defaults file from @ROMFS/defaults.parm in case there are defaults
applicable to this subtree
2024-02-14 09:21:15 +09:00
Tim Tuxworth 4919ae8f59 AP_Param: added convert_centi_parameter() 2024-01-23 15:00:30 +11:00
Peter Barker 6ce4dfea57 AP_Param: use ROMFS API for defaults file parsing if no AP_FileSystem 2024-01-18 21:44:15 +11:00
Peter Barker 27fa5f8d2c AP_Param: use @ROMFS/defaults.parm rather than apj_tool for defaul parms 2024-01-17 18:28:48 +11:00
Iampete1 75ac3f98fa AP_Param: Allow override of AP_PARAM_DYNAMIC_ENABLED define 2023-10-17 10:23:20 +11:00
Andrew Tridgell 4f0ba39b64 AP_Param: fixed parameter defaults array length handling
we need to add up the total for all comma separated parameter files
2023-08-22 11:07:30 +10:00
Peter Barker d806dd8ef1 AP_Param: allow AP_SCRIPTING_ENABLED to come from hwdef files 2023-06-09 16:10:52 +10:00
Andrew Tridgell 4899ec9457 AP_Param: added set() to AP_Enum 2023-04-14 07:48:24 +10:00
Iampete1 49d23e16df AP_Param: rework embedded defualts list as no longer needed 2023-01-24 10:16:56 +11:00
Iampete1 02af134ba6 AP_Param: allow defualt values to be given by const float var 2023-01-24 10:16:56 +11:00
Iampete1 15daff879e AP_Param: add shared Info defines 2023-01-11 18:41:34 +11:00
Iampete1 dd31742463 AP_Param: align param info structures to save flash 2023-01-11 18:41:34 +11:00
Peter Barker 7f9714d722 AP_Param: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Andrew Tridgell 39fdc38c71 AP_Param: make load_defaults_file() available on ChibiOS 2022-09-14 18:04:46 +10:00
Iampete1 3d98122179 AP_Param: move complex AP_ParamT functions to cpp 2022-09-13 09:09:33 +10:00
Iampete1 90780e52b3 AP_Param: remove AP_ParamV `=` operator 2022-08-03 13:43:48 +01:00
Iampete1 59d75813cc AP_Param: params always use set method 2022-08-03 13:43:48 +01:00
Iampete1 5b290920a7 AP_Param: keep track of defualt values in linked list 2022-07-20 17:59:59 +10:00
Andrew Tridgell 45c016ea13 AP_Param: make configured_in_storage() private
prevent future bugs using the wrong method
2022-06-06 13:11:50 +10:00
Andrew Tridgell 1343af85e2 AP_Param: added support for dynamic parameter tables
this allows for up to 10 dynamic tables to be added by scripts. The
parameter tables can have up to 63 float parameters
2022-01-11 13:04:53 +11:00
Iampete1 af83b1efd2 AP_Param: remove scripting function name helpers 2022-01-04 11:26:29 +11:00
Peter Barker b1cff2d3f5 AP_Param: add AP_Enum16 for AP_Int16 enumerated values 2021-12-14 11:28:33 +11:00
Josh Henderson ed32136006 AP_Param: remove unused convert_parent_class() 2021-11-02 10:18:09 +11:00
Josh Henderson 9cae5d1120 AP_Param: add sub-group class param conversion method 2021-11-02 10:18:09 +11:00
Andrew Tridgell 10cbd3fd80 AP_Param: added a flag for hidden parameters 2021-09-07 10:36:16 +10:00
Andrew Tridgell 0b948d3faf AP_Param: allow save_sync without send 2021-04-21 07:12:55 +10:00
Andrew Tridgell 23785c00dc AP_Param: improved queue handling and added set_and_save_by_name_ifchanged 2021-04-21 07:12:55 +10:00
Andrew Tridgell 7b98ab0f12 AP_Param: added get_param_by_index
useful for parameter conversion within an object
2021-04-15 06:57:16 +10:00
Michelle Rossouw 8bc0f100a2 AP_Param: added blimp frame type 2021-03-31 12:27:07 +11:00
Andrew Tridgell 6c684538d3 AP_Param: greatly speed up param download with disabled parameters
allows fast skip over disabled subgroups. This removes a long delay
with param download on a MatekF405-STD where the final parameters
associated with the OSD took 80ms to fetch, causing a long loop delay
2021-01-26 10:43:09 +11:00
Andrew Tridgell 4d58bcb321 AP_Param: support restoring from parameter backup region
if header on primary parameter storage is corrupt then restore from
backup
2021-01-16 06:47:10 +11:00
Peter Barker 840c386a33 AP_Param: add _FLAG to AP_PARAM_NO_SHIFT
Just for consistency with the other flags
2020-12-16 19:30:29 +11:00
Andrew Tridgell 084b589f3a AP_Param: added template class AP_Enum for enum AP_Int8 values 2020-12-02 18:33:07 +11:00
Tom Pittenger 150b8653a4 Revert "AP_Param: add set_and_save_and_notify()"
This reverts commit 96a2aa485a.
2020-10-07 19:11:38 +11:00
Tom Pittenger 96a2aa485a AP_Param: add set_and_save_and_notify() 2020-09-15 13:09:50 -07:00
Andy Piper 7aa98d55eb AP_Param: expose the stable key for use by AP_OSD
add support for finding parameters by name and returning the token
2020-09-09 20:36:42 +10:00
bugobliterator c6e45dd536 AP_Param: add set_and_save_ifchanged for Vector3f params 2020-09-02 17:06:05 +10:00
Randy Mackay a66893a295 AP_Param: minor spelling fix 2020-08-10 19:26:20 +10:00
Andrew Tridgell db0d3c5e89 AP_Param: fixed race in param count handling 2020-04-29 07:36:55 +10:00
Andrew Tridgell 766fb32292 AP_Param: added set_enable() API
used to set value of an enable parameter, clearing count cache
2020-04-29 07:36:55 +10:00
Andrew Tridgell 456b685779 AP_Param: make type_size() public 2020-04-29 07:36:55 +10:00
Andrew Tridgell bb87da628e AP_Param: fixed build warning 2020-04-28 10:32:23 +10:00
Andrew Tridgell 8d1bf46dab AP_Param: use smaller param area for all 1M flash boards 2020-03-28 15:28:03 +11:00
Nick Exton 741abaf760 AP_Param: Add static assert on NVM struct sizes 2020-03-14 13:47:25 +11:00
Siddharth Purohit 1d2985e967 AP_Param: add method to find key of top level group variable by pointer 2020-02-19 13:59:53 +09:00
Peter Hall 5164eacc4a AP_Param: add get and set functions 2020-02-18 10:18:12 +11:00
Peter Hall 623c1aa3cd AP_Param: add singleton 2020-02-18 10:18:12 +11:00
Peter Hall 1ee14ffa75 AP_Param: use thread safe object buffer 2020-02-12 07:05:05 +11:00