Commit Graph
100 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic c39420bde7 Fix NV14 linker script 2021-11-11 22:22:05 +01:00
Raphael Coeffic 78442c1cec Re-added inadvertently removed module options 2021-11-11 08:13:53 +01:00
Raphael Coeffic 26c5c2b3d4 Fix GVar adjust mode 2021-11-10 11:07:04 +01:00
Raphael Coeffic ca31c275bd Fix override channel parameter 2021-11-10 11:07:04 +01:00
Raphael Coeffic 125b282d81 Fixed value widget source 2021-11-10 11:07:04 +01:00
Raphael Coeffic 99c7dbf575 Fixed issue with logical switches 2021-11-10 11:07:04 +01:00
Raphael Coeffic 0fee85d3c0 Fixed loadModelHeader() 2021-11-10 11:07:04 +01:00
Raphael Coeffic 351f5d6d7a Use updated constants for some write functions as well to cope with changed data model 2021-11-10 11:07:04 +01:00
Raphael Coeffic a7ee5f593d Patch radio data version properly (just in case) 2021-11-10 11:07:04 +01:00
Raphael Coeffic 4a5a0be38c Removed on-the-fly model conversions
This makes no sense for YAML model files, only for BIN models (when YAML is not the format of choice).
2021-11-10 11:07:03 +01:00
Raphael Coeffic 88a9b1c6d9 Fixed multi sub proto parsing 2021-11-10 11:07:03 +01:00
Raphael Coeffic b72428bdba Improved module data output 2021-11-10 11:07:03 +01:00
Raphael Coeffic a6ab29d58d Added logical switch tests 2021-11-10 11:07:03 +01:00
Raphael Coeffic 99b4020b34 Fixed yaml_str2uint_ref() 2021-11-10 11:07:03 +01:00
Raphael Coeffic c09640b950 Fix pots/sliders direction (EX3 & EX4 missing) 2021-11-10 11:07:03 +01:00
Raphael Coeffic 11621cf736 Added support for EXT3 / EXT4 2021-11-10 11:07:03 +01:00
Raphael Coeffic 5a727ed6d1 Fix default model index 2021-11-10 11:07:03 +01:00
Raphael Coeffic 2537c7a004 Restore simulated SD path after test 2021-11-10 11:07:03 +01:00
Raphael Coeffic 455cb1c2b8 Cope with padding inside ZoneOptionValueTyped
As it seems, ZoneOptionValueEnum is optimised by ARM-GCC to have only 8bits, rather than the 32bits used by the host compiler. Meaning that with "data" pointing at ZoneOptionValueTyped::value, we need the offset and not the size of the element before to properly rewind the data pointer.
2021-11-10 11:07:03 +01:00
Raphael Coeffic bcdb9bd311 Fix model names and indexes on storage creation 2021-11-10 11:07:03 +01:00
Raphael Coeffic 3717e37e3f Set current model in ModelsList while loading 2021-11-10 11:07:03 +01:00
Raphael Coeffic c6b847c9ac thrTraceSrc and potsWarnMode 2021-11-10 11:07:03 +01:00
Raphael Coeffic cc9b146713 Output widget colors as such 2021-11-10 11:07:03 +01:00
Raphael Coeffic a356b5199d Cope with stupid GCC 2021-11-10 11:07:03 +01:00
Raphael Coeffic c2056c7585 Output source option of Value & Gauge widgets in a symbolic way 2021-11-10 11:07:03 +01:00
Raphael Coeffic cc0af82506 Added draft conversion test for TX16S 2021-11-10 11:07:03 +01:00
Raphael Coeffic e7519b6cce Extended widgetName to fill up alignment hole
widgetData is aligned on 32bit address, so that its offset was calculated wrong.
2021-11-10 11:07:03 +01:00
Raphael Coeffic 288fe158ae WiP fix emergency mode 2021-11-10 11:07:03 +01:00
Raphael Coeffic 8eed123716 Even more unit tests 2021-11-10 11:07:03 +01:00
Raphael Coeffic f4ae4a6d48 More unit tests 2021-11-10 11:07:02 +01:00
Raphael Coeffic c749fd8681 X9D+ conversion unit test + fixes 2021-11-10 11:07:02 +01:00
Raphael Coeffic 17d4ea5c62 Fix color lcd 2021-11-10 11:07:02 +01:00
Raphael Coeffic 64d524f717 Fixed canned constants (FUNC_TOUCH_DISABLE again....) 2021-11-10 11:07:02 +01:00
Raphael Coeffic 397674021e Improved logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic 4333e4267c Added missing DISABLE_TOUCH in conversions as well. 2021-11-10 11:07:02 +01:00
Raphael Coeffic 00d1e54c68 select_custom_fn() has been removed 2021-11-10 11:07:02 +01:00
Raphael Coeffic 5f2fb4386c Align with changes on main branch
See #942
2021-11-10 11:07:02 +01:00
Raphael Coeffic 682aabacec WiP logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic b5e9c68056 Improve custom functions 2021-11-10 11:07:02 +01:00
Raphael Coeffic 3da2aee1ff Sensor type & formula 2021-11-10 11:07:02 +01:00
Raphael Coeffic 24b69098c7 Improved swashR, flightModes & sources 2021-11-10 11:07:02 +01:00
Raphael Coeffic d8bda6b8bb Reworked flight mode gvar output & size checks 2021-11-10 11:07:02 +01:00
Raphael Coeffic 9f7f39376a Fix datastruct sizes for NV14 2021-11-10 11:07:02 +01:00
Raphael Coeffic baba1c5e9d Added some safeguards to avoid issues related to data struct sizes 2021-11-10 11:07:02 +01:00
Raphael Coeffic c9b20063ec Use YAML output functions from version 220 as long as possible
This allows to save some flash memory.
2021-11-10 11:07:02 +01:00
Raphael Coeffic b1521579ba Improved telemetry screen type output 2021-11-10 11:07:02 +01:00
Raphael Coeffic 4ee58045e1 Improved mixer source (de-)serialization 2021-11-10 11:07:02 +01:00
Raphael Coeffic b7640a830f WiP pass YamlTreeParser where needed 2021-11-10 11:07:02 +01:00
Raphael Coeffic d1c7ae4141 Properly patch filenames in models.yml & handle missing files 2021-11-10 11:07:01 +01:00
Raphael Coeffic 8eceb282c6 Consider calibration values to be correct if loaded from YAML. 2021-11-10 11:07:01 +01:00
Raphael Coeffic f932e9e12c Further confined v220 data structures 2021-11-10 11:07:01 +01:00
Raphael Coeffic 7b6749ebee Fixed flight mode reading/writing 2021-11-10 11:07:01 +01:00
Raphael Coeffic b9b510e367 custom functions: output "play" for functions with string, "all" for the others 2021-11-10 11:07:01 +01:00
Raphael Coeffic 0cf677c8ee Fixed convert model path (color lcd) 2021-11-10 11:07:01 +01:00
Raphael Coeffic fb4f555442 Fix color lcd conversions 2021-11-10 11:07:01 +01:00
Raphael Coeffic 4c8db58166 Fixes compilation for color lcd 2021-11-10 11:07:01 +01:00
Raphael Coeffic da3759a2a3 Some b&w conversion fixes (more needed for color lcd) 2021-11-10 11:07:01 +01:00
Raphael Coeffic 68bdf025c1 Fixed switch position warning display on B&W 2021-11-10 11:07:01 +01:00
Raphael Coeffic fc4cdfd9ae Implement model backup/restore 2021-11-10 11:07:01 +01:00
Raphael Coeffic 8d04e373b6 WiP storage format conversions 2021-11-10 11:07:01 +01:00
Raphael Coeffic 0503e6fb8e Some cleanup 2021-11-10 11:07:01 +01:00
Raphael Coeffic f0dbbf41da Fix LCD_W defines 2021-11-10 11:07:01 +01:00
Raphael Coeffic 2e4c313f01 Pack the frozen time capsule 2021-11-10 11:07:01 +01:00
Raphael Coeffic bcc1f55b37 Use full custom to cope with the strange trainer mode defs 2021-11-10 11:07:01 +01:00
Raphael Coeffic 61e837f0b7 Clean up 2021-11-10 11:07:01 +01:00
Raphael Coeffic 69c017091a More stringified values 2021-11-10 11:07:01 +01:00
Raphael Coeffic c048b187b4 Set indexes directly rather than incrementing step by step 2021-11-10 11:07:01 +01:00
Raphael Coeffic d59bbd1020 Fix compiling taranis-like targets 2021-11-10 11:07:00 +01:00
Raphael Coeffic a8f2212f2c Added support for lists (without index value) 2021-11-10 11:07:00 +01:00
Raphael Coeffic 77ff579355 Stick names in own config list 2021-11-10 11:07:00 +01:00
Raphael Coeffic 21bf580f9a Merge switches / pots / sliders names into their config struct 2021-11-10 11:07:00 +01:00
Raphael Coeffic b5aca8f22e Fix case with invalid switch, pot & slider idx name in config 2021-11-10 11:07:00 +01:00
Raphael Coeffic 218590b277 Fixed NV14 CMakeLists.txt 2021-11-10 11:07:00 +01:00
Raphael Coeffic 33d6cd95a2 Conversion tests are for EEPROM only 2021-11-10 11:07:00 +01:00
Raphael Coeffic c696313a4e Use simple scheme with direct model slot to model filename 2021-11-10 11:07:00 +01:00
Raphael Coeffic 96b256cbdb Fix for targets without XPOTS 2021-11-10 11:07:00 +01:00
Raphael Coeffic 4b79cdc795 Fix some b&w target compilation 2021-11-10 11:07:00 +01:00
Raphael Coeffic f8ab3770e4 Updated generated yaml parser structs 2021-11-10 11:07:00 +01:00
Raphael Coeffic 679c5aef31 Fixed EEPROM tests 2021-11-10 11:07:00 +01:00
Raphael Coeffic a26a43ee1d Use specific generated YAML bindings on X7 variants 2021-11-10 11:07:00 +01:00
Raphael Coeffic 8a9154db76 Force disable YAML on X9D-like targets (UI missing) 2021-11-10 11:07:00 +01:00
Raphael Coeffic f21bcd6987 Added missing STORAGE_CONVERT cmake var to Horus-like targets 2021-11-10 11:07:00 +01:00
Raphael Coeffic 5e0d0131b4 Added EEPROM conversions to YAML 2021-11-10 11:07:00 +01:00
Raphael Coeffic 630e6918ea Added more B/W targets 2021-11-10 11:07:00 +01:00
Raphael Coeffic 20a1fa38c4 Enable YAML storage by default 2021-11-10 11:07:00 +01:00
Raphael Coeffic 7e110ce4b1 Add empty CURR_MODEL_FILENAME in case SD card storage is not used 2021-11-10 11:07:00 +01:00
Raphael Coeffic e48762e453 use proper define for KEY_PAGE defined 2021-11-10 11:07:00 +01:00
Raphael Coeffic faaa5b928a define away COLORLCD specifics 2021-11-10 11:07:00 +01:00
Raphael Coeffic 82fec817f1 yaml_ use EEPROM_VER = 221 2021-11-10 11:06:59 +01:00
Raphael Coeffic 7da2615d4f yaml: do not copy '\r' or '\n' into attribute name 2021-11-10 11:06:59 +01:00
Raphael Coeffic 985a8760bb WiP 2021-11-10 11:06:59 +01:00
Raphael Coeffic 5a367a5221 Bin to Yaml conversions 2021-11-10 11:06:59 +01:00
Raphael Coeffic 6c73b5ba0a WiP
TODO: support conversions from BIN to YAML.
2021-11-10 11:06:59 +01:00
Raphael Coeffic ce75a1a48d Compilation fixes after rebase 2021-11-10 11:06:59 +01:00
Raphael Coeffic 72859ad6d1 WiP 2021-11-10 11:06:59 +01:00
Raphael Coeffic c2f42879a4 Test with X7 family 2021-11-10 11:06:59 +01:00
Raphael Coeffic fa521fa1da Updated YAML data structs 2021-11-10 11:06:59 +01:00
Raphael Coeffic d2ddb2e535 Fix compilation error 2021-11-10 11:06:59 +01:00
Raphael Coeffic e1736294c8 Use a list attribute name as model category 2021-11-10 11:06:59 +01:00
Raphael Coeffic 9436e171a7 Change ExpoData to custom functions for X12S as well. 2021-11-10 11:06:59 +01:00