Raphael Coeffic and Raphael Coeffic
3ffa531fdd
Fix length of Txx string
...
Resolves #1116
2021-11-21 22:34:53 +01:00
Raphael Coeffic and Raphael Coeffic
916651033c
Fixed mixer scheduler timer overflow
...
The max period is now 50ms, so that it overflows the 16bit timer when set to the max period.
Many thanks to @marianomd for finding the issue and the proposed fix!
2021-11-21 21:53:11 +01:00
Raphael Coeffic
ead357c702
Do not output the YAML files in simu without DEBUG_YAML
2021-11-21 15:55:55 +01:00
Raphael Coeffic
cee9b67cc6
Hotfix YAML generator
2021-11-21 11:46:37 +01:00
Raphael Coeffic and Raphael Coeffic
3c43ac6c87
Do not enable INTERNAL_MODULE_CRSF by default
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
5e3c20b258
Push some dirty hack to give internal CRSF a higher prio
...
This allows for BF scripts to run on internal CRSF.
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
9c50255905
Fix pollExtPXX2()
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
5bbc055f3e
Remove debug pins
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
a2b7f88e41
Added command to start/stop the pulses
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
81da0bf587
Added power and bootpin commands (Thx @pkendall64)
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
85ec133ff3
Auto baudrate on serialpassthrough
...
baudrate param becomes optional
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
c5c2829c24
Added baud rate changing on the fly to serial pass through
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
f3301e6210
Added control line and bitrate callbacks
...
And some additional clean-up
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
01059da849
Fixed serial passthrough exit when pulling USB cable
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
aa7b0143bd
Add active polling on UART buffer and bigger USB buffers
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
1fe4876786
Revert ModuleFifo size to original (PXX2_FRAME_MAXLENGTH = 64)
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
729ed91e7b
Add @CapnBry 5.25M
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
96743a9fc4
PoC: connect USB/serial ISR directly to the respective serial send
...
This assumes that USB IRQ has a lower logical prio as the UART IRQ so that it can be pre-empted by the USART ISR.
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
3e390bd582
Cleanup debug pin toggle
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
3fd3077944
Fixed simulator
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
35f8dc2551
Fixed compilation for pulses based internal module
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
d2acdda429
Fixed AUX_SERIAL
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
07c6d3b116
Set CDC_IN_FRAME_INTERVAL to 4 (USB CDC driver)
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
73790c1654
Use FreeRTOS stream buffers and task notifications
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
59f2b5e8b0
Temporary boosting the ModuleFifo to 128 bytes
...
This is to better cope with the CRSF frames that need to contain 64, whereby Fifo has a maximum content length of (N-1).
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
4124d0a950
Quick and dirty: use a memory address actually usable with DMA
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
c95667394c
OMG when is it ending
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
0cef967912
Fix typo
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
496c3861c4
Fix targets with internal module UART without DMA
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
ffd537a28b
Fixed compiling with DEBUG=ON
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
c8a4a80ffd
Serial pass-through
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
1f0480532d
Removed "[SYNC]" debug
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
8b438bc672
Fix receiving RADIO_ID pkt
...
Thx @CapnBry
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
6b94c2f45d
Small fixes for TX16S
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
b1b3423844
Use stream buffer for CLI
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
ae629c4065
Enable CLI on TX16S
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
7cfcac3e1e
Fix compiling with CLI and define most commands away
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
043c1e6a2d
Fixed pushing CRSF telem packets to internal module
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
9fb741be98
Don't forget to actually send the payload
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
dbb976063a
CROSSFIRE does look like it's defined at this point....
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
22d82784b5
Add CMake defs for internal CRSF on TX16S
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
5d240e4e48
WiP internal CRSF pulses
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
42508f4173
Slightly revamp telemetry polling
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Raphael Coeffic
2abf07ed9b
Port of TBS's changes for module scoped telemetry
2021-11-21 11:18:35 +01:00
Raphael Coeffic and Peter Feerick
582cbc13a5
std::string::data() gives no guaranty on 0-termination
2021-11-20 19:18:09 +10:00
Raphael Coeffic and Raphael 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