Raphael Coeffic
944f98048a
Do not include moduledata.h in boards.h
...
As it is used from the simulator classes, which uses radio source files as well.
2022-01-02 13:31:33 +01:00
Raphael Coeffic and Raphael Coeffic
5495eac12a
Set default internal module in general settings
2022-01-02 13:05:09 +01:00
Raphael Coeffic and Raphael Coeffic
8a936af8f4
Add YAML support for internal module setting
2022-01-02 13:05:09 +01:00
Raphael Coeffic and Raphael Coeffic
1c823120e4
Use a list of supported internal modules rather than a module by module test
2022-01-02 13:05:09 +01:00
Raphael Coeffic and Raphael Coeffic
a719b2429f
Fixed condition for supported internal module feature
2022-01-02 13:05:09 +01:00
Raphael Coeffic
85a184f15e
Catch all exceptions thrown by std::stoi()
2022-01-01 13:51:20 +01:00
Raphael Coeffic
eb1e3078c8
Fix index for negative GVARs
2022-01-01 12:35:29 +01:00
Raphael Coeffic
7ef56c5d60
Throw proper YAML exception instead of std::invalid_argument
2022-01-01 11:57:56 +01:00
Raphael Coeffic
e18219f53b
backlightMode ON is -4
...
Seems the field is read as a signed 3 bit integer from `.otx`.
2022-01-01 11:39:17 +01:00
Raphael Coeffic
25ee9369cf
Do not convert node to string if not a scalar
2022-01-01 11:36:29 +01:00
Raphael Coeffic
8e69976dbb
Skip calibration data for invalid analogs
2021-12-31 18:41:59 +01:00
Raphael Coeffic
ede80e2ebd
Fix backlight delay
2021-12-31 17:24:12 +01:00
Raphael Coeffic
0f6c2b0cba
Fix GCC warning.
2021-12-31 14:28:40 +01:00
Raphael Coeffic
4a1c44a553
Do not try to parse the model list if it's empty
2021-12-31 14:16:58 +01:00
Raphael Coeffic
f56b462d54
Do not set varioSource to an arbitrary value.
2021-12-31 10:53:12 +01:00
Raphael Coeffic
b097593e73
Fix reading models from B&W radio
2021-12-31 10:53:12 +01:00
Raphael Coeffic
6cfecb7ddb
Fix output for empty params in custom functions (like "Play track")
2021-12-31 10:53:12 +01:00
Raphael Coeffic
5628391539
Allow yaml-cpp exception to be caught in the loader and set as error
...
This allows for better debugging: the exception shows where in the file the error has occurred.
2021-12-31 10:53:11 +01:00
Raphael Coeffic
79181d1484
Add model files loading for B&W radios
2021-12-31 10:53:11 +01:00
Raphael Coeffic
3eb55af228
Do not init points to identity function to avoid issues with radio firmware
2021-12-31 10:53:11 +01:00
Raphael Coeffic
f965707bdd
Fixed write format detection
2021-12-31 10:53:11 +01:00
Raphael Coeffic
c9ba1a632b
Fixed custom function repeat param (!1x)
2021-12-31 10:53:11 +01:00
Raphael Coeffic
a90d89ece6
Remove escaping in negated switches (yaml-cpp does not seem to do it)
2021-12-31 10:53:11 +01:00
Raphael Coeffic
0190b1e19d
Fixed reading flight mode data (gvars)
2021-12-31 10:53:11 +01:00
Raphael Coeffic
b4a64189b7
Fixed custom functions "play sound" and trainer.
2021-12-31 10:53:11 +01:00
Raphael Coeffic
7b2d7158ff
Fixed curve reference in outputs
2021-12-31 10:53:11 +01:00
Raphael Coeffic
c4cb491966
Fixed output min/max
2021-12-31 10:53:11 +01:00
Raphael Coeffic
36aaa8d555
Fix GVAR output
2021-12-31 10:53:11 +01:00
Raphael Coeffic
af00d03640
Fixed special switches and play value, volume & backlight custom functions
2021-12-31 10:53:11 +01:00
Raphael Coeffic
64287e5654
Fixed flight modes' and logical switches' indexes
2021-12-31 10:53:11 +01:00
Raphael Coeffic
c95bb66602
Fixed test file unzipping
2021-12-31 10:53:11 +01:00
Raphael Coeffic
ef86a76dd6
Fixed GVAR curve ref
2021-12-31 10:53:11 +01:00
Raphael Coeffic
9f9c3aba01
Add curve ref gvar support
2021-12-31 10:53:11 +01:00
Raphael Coeffic
7a66c3413a
Fixed YAML GVAR based values
2021-12-31 10:53:11 +01:00
Raphael Coeffic
c8cd009ea2
Fix output encoding/decoding
2021-12-31 10:53:11 +01:00
Raphael Coeffic
bf41080b57
Fix YAML radio format: outputs GVAR support and small fixes
2021-12-31 10:53:11 +01:00
Raphael Coeffic
38e6748e14
Rename test files to .otx as they still use binary format
2021-12-31 10:53:11 +01:00
Raphael Coeffic
0c88f4e52b
Small fixes
2021-12-31 10:53:11 +01:00
Raphael Coeffic
282ba2bd5a
Fixed switch warnings
2021-12-31 10:53:11 +01:00
Raphael Coeffic
a9e1e7d18e
Filter out empty topbar data
2021-12-31 10:53:11 +01:00
Raphael Coeffic
1a7e5e3b2b
Fixed setting bit-field members in random order
2021-12-31 10:53:11 +01:00
Raphael Coeffic
e56e769d27
Patch .bin filename to .yml
2021-12-31 10:53:11 +01:00
Raphael Coeffic
7e8e5bf554
Fixed metadata in models.yml
2021-12-31 10:53:11 +01:00
Raphael Coeffic
c2c23c43d9
Fix parsing last line without CRLF/LF.
...
Check EOF at the end of the buffer.
2021-12-31 10:53:11 +01:00
Raphael Coeffic
9f348b513e
Fix writing model files for radios without categories
2021-12-31 10:53:11 +01:00
Raphael Coeffic
f4257c0c2a
Fix simulated SD card path redirection
2021-12-31 10:53:11 +01:00
Raphael Coeffic
a0bc0fd2e1
Use temporary SD card path for all radios using SD card storage
2021-12-31 10:53:11 +01:00
Raphael Coeffic
56ceaebeb8
Use proper switch lookup
2021-12-31 10:53:11 +01:00
Raphael Coeffic
1d2892ee2f
Remove some more empty attributes
2021-12-31 10:53:11 +01:00
Raphael Coeffic
2ccbb7f343
Fixed switch, pot & sliders config
2021-12-31 10:53:11 +01:00
Raphael Coeffic
2659abf216
Fixed screen data
2021-12-31 10:53:11 +01:00
Raphael Coeffic
00b6e4faca
Fixed FuncReset
2021-12-31 10:53:11 +01:00
Raphael Coeffic
9057a6b7f1
Default to YAML for write format
2021-12-31 10:53:11 +01:00
Raphael Coeffic
26ecb10288
Fixed switches index
2021-12-31 10:53:11 +01:00
Raphael Coeffic
1ec3113a85
Fixed outputting timers, flight modes, mixers and limits
2021-12-31 10:53:10 +01:00
Raphael Coeffic
d3e619cec4
Removed unused YamlRssiSource
2021-12-31 10:53:10 +01:00
Raphael Coeffic
616b271e30
Add various telemetry sources and screens
2021-12-31 10:53:10 +01:00
Raphael Coeffic
51f66a9e79
modelID and small fixes
2021-12-31 10:53:10 +01:00
Raphael Coeffic
a4ad8154eb
Add function switches
2021-12-31 10:53:10 +01:00
Raphael Coeffic
2a1cc9719e
Add screen / topbar data
2021-12-31 10:53:10 +01:00
Raphael Coeffic
9409503728
Add sensor data / script data
2021-12-31 10:53:10 +01:00
Raphael Coeffic
56997f4d3c
Use definitions in Boards for pots/sliders config
2021-12-31 10:53:10 +01:00
Raphael Coeffic
4efa5bbed7
Added custom functions
2021-12-31 10:53:10 +01:00
Raphael Coeffic
54f7f42031
Fixed missing include
2021-12-31 10:53:10 +01:00
Raphael Coeffic
7fc4963759
Some fixes
2021-12-31 10:53:10 +01:00
Raphael Coeffic
c6b23797a7
Logical switches
2021-12-31 10:53:09 +01:00
Raphael Coeffic
80c62bb1f0
Module settings
2021-12-31 10:53:09 +01:00
Raphael Coeffic
d0089232ff
Fixes saving b&w models
2021-12-31 10:53:09 +01:00
Raphael Coeffic
eec0c30589
Use analog lookup table in RawSource conversion as well
2021-12-31 10:53:09 +01:00
Raphael Coeffic
ac3e2a7c88
Add support for analogs with name different from tag
2021-12-31 10:53:09 +01:00
Raphael Coeffic
91ea5998b7
Translate offset to support gvars
2021-12-31 10:53:09 +01:00
Raphael Coeffic
6018765107
Added inputs and curves
2021-12-31 10:53:09 +01:00
Raphael Coeffic
8fd3e0d5c8
Throttle trace
2021-12-31 10:53:09 +01:00
Raphael Coeffic
e73d9c5707
Added flight mode data
2021-12-31 10:53:09 +01:00
Raphael Coeffic
f5271b806e
Raw source encoding and limit data
2021-12-31 10:53:09 +01:00
Raphael Coeffic
98a6156889
WiP: mix data
2021-12-31 10:53:09 +01:00
Raphael Coeffic
763964193e
Small fixes
2021-12-31 10:53:09 +01:00
Raphael Coeffic
cd7585091c
Disable yaml-cpp tests
2021-12-31 10:53:09 +01:00
Raphael Coeffic
b73ffb5e08
WiP: write basic model data and models list
2021-12-31 10:53:09 +01:00
Raphael Coeffic
a7781deb6a
Mark read models as "used"
2021-12-31 10:53:09 +01:00
Raphael Coeffic
2335d39fb5
Make GCC happy
2021-12-31 10:53:09 +01:00
Raphael Coeffic
8a10ffa43d
Output knobs config
2021-12-31 10:53:09 +01:00
Raphael Coeffic
f3bf1d4d42
Add calib data write
2021-12-31 10:53:09 +01:00
Raphael Coeffic
c5d686a6f0
WiP: write GeneralSettings to YAML
2021-12-31 10:53:09 +01:00
Raphael Coeffic
0e437ca492
Add RawSwitch converter
2021-12-31 10:53:09 +01:00
Raphael Coeffic
d0293013ec
WiP: Add model loading
2021-12-31 10:53:09 +01:00
Raphael Coeffic
ac60ad87f8
Check "firmware/board" and added gyro settings
2021-12-31 10:53:09 +01:00
Raphael Coeffic
3f7ddb48cb
Fixed missing include
2021-12-31 10:53:09 +01:00
Raphael Coeffic
daa49350f2
Add value shifts and factors
2021-12-31 10:53:09 +01:00
Raphael Coeffic
9dd8917ab4
Add stick, switch, pots & slider config
2021-12-31 10:53:09 +01:00
Raphael Coeffic
f57a1fd6c3
Add support for radio calibration
2021-12-31 10:53:09 +01:00
Raphael Coeffic
d98a697aca
Add "board" field and remove a few useless ones
2021-12-31 10:53:09 +01:00
Raphael Coeffic
30c1e703b1
Added offset capabilities for integers
2021-12-31 10:53:09 +01:00
Raphael Coeffic
88ea3f8b20
Add enum lookup tables
2021-12-31 10:53:09 +01:00
Raphael Coeffic
5a8a5ab743
WiP: start parsing YaML
2021-12-31 10:53:08 +01:00
Raphael Coeffic
20961e460b
Use double quotes around switches to avoid escaping with backslash
...
Escaping with backslash arbitrary characters seems to be an issue with most YAML parsers.
2021-12-31 10:52:20 +01:00
Raphael Coeffic
2244e369ed
Add Zorro and T-pro to nightly builds
2021-12-31 09:35:25 +01:00
Raphael Coeffic
81d7768498
Fix arbitrary escaping in quoted strings
2021-12-30 14:21:02 +01:00
Raphael Coeffic
587e64f76a
Fix potential YAML format issue by enclosing "def" value in double quotes
2021-12-30 13:55:06 +01:00
Raphael Coeffic
1fa27e89ac
Fixed output of structs inside arrays without indexes
...
This is the case for curves inside mixes, which would previously prevent outputting all attributes following the `curve` attribute: `delayUp`, `delayDown`, `speedUp`, `speedDown` and `name`.
2021-12-29 15:26:25 +01:00