Commit Graph
10349 Commits
Author SHA1 Message Date
WilhelmandGitHub c14417a325 Try to fix use of unterminated strings in mixer setup (#1317) (#1338)
* fixes the non-terminated fixed-string problem in lua-mixer-script
added some useful info to the script-line
make the popup menu to delete a script

* removed unneccessary comments

* intermediate fix

* tried to obey all comments to the code
and to eliminate further potential buffer-overflows

* fixed typo

* fixed async loading of lua scripts and update of widget
cleanup

* removed GCC pragmas (clang warn about them)
remove constexpr qualification (gcc accepts them because gcc-builtins are already constexpr, clang still warns about them)

* removed merge marker
2022-03-23 12:40:06 +01:00
Jesper FrickmannandGitHub cdda903a25 fix: Lua - Changed getSwitch* so can also get "One" and "ON" switch positions (#1720)
Use `ModelCustomFunctionsContext` instead of `LogicalSwitchesContext` to get "One" and "ON" switch positions
2022-03-23 19:09:43 +10:00
Raphael Coeffic 6bb11a3b68 Kill the return of SKY9X's ghost 2022-03-22 18:39:00 +01:00
Raphael Coeffic 921854d13c fix: bottom of hardware menu on stdlcd 2022-03-22 14:58:39 +01:00
Raphael Coeffic f4cfcf2d3f fix: restart internal module when baudrate is changed 2022-03-22 11:33:16 +01:00
Peter Feerick 8da54326cb fix: Faster topbar widget refresh (10hz, was 2hz)
Fixes #1096
2022-03-22 20:16:49 +10:00
Peter Feerick 08ffcc726a fix: Only remove topbar widget zone if GPS active
Fixes #1718
2022-03-22 19:44:25 +10:00
Peter FeerickandGitHub b54ad7169a feat: Option for inverting rotary encoder direction (#1690)
* feat: Add option for rotary encoder direction
Based heavily on opentx/opentx#8852 by @3djc

* companion ui elements

* Cleanup

* Hook up UI, reading setting from yaml

* Teach simulator about rotEncDirection

* Simu and radio default scroll direction correction
Otherwise the "default" would be the opposite to how it has always been

* Remove what will be a confict with fix in #1586

* Wasn't using rotEncDirection consistently

* Zorro RE dir is opp to TX16, TX12, TPro, X9D+2019
2022-03-22 16:14:57 +10:00
Peter FeerickandGitHub 33f761c17b feat: Configurable external CRSF baud rates (see #1581)
CRSF modules baudrate
2022-03-22 16:06:57 +10:00
Peter Feerick e0a1dca5cc Read telemetryBaudrate into internalModuleBaudrate 2022-03-22 15:48:59 +10:00
Peter FeerickandGitHub c327c6c0db fix: TPro FS showing in global funcs and MPM protocol list updates (#1705)
* Init contrast earlier for 128 B&W screens
https://github.com/opentx/opentx/pull/8882

* fix: TPro - No FS in global functions
https://github.com/opentx/opentx/pull/8845

* Missing IS_SWITCH_FS defintions

* Update MPM fallback SUBTYPE and OPT strings

* Custom MPM proto should not be processed
2022-03-21 20:57:04 +10:00
Peter FeerickandRaphael Coeffic 70f71c8ec8 Remove compiler warning 2022-03-21 11:48:51 +01:00
Peter FeerickandRaphael Coeffic 19b1db7275 Use existing getStringAtIndex as considers length 2022-03-21 11:48:51 +01:00
3djcandRaphael Coeffic 21f776d40c Fixes 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic f426dd1254 Fixes 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic 77b00cd230 typo... 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic f090c599df Add a reminder of internal CRSF speed in model setup 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic 7ec58d06d6 remove warning 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic ab09d0a25f Introduce serial status 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic 4039069bb7 YAML fixes 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic 0cc2b95b09 Cosmetics 2022-03-21 11:48:50 +01:00
3djcandRaphael Coeffic c0e6f2a7f9 Compilation fixes 2022-03-21 11:48:49 +01:00
3djcandRaphael Coeffic e63eeb0984 Update yaml 2022-03-21 11:45:15 +01:00
3djcandRaphael Coeffic 6f158663a9 Fixes 2022-03-21 11:45:15 +01:00
3djcandRaphael Coeffic 001144cd5c Ghost module handling 2022-03-21 11:45:15 +01:00
3djcandRaphael Coeffic 97d3c68efc Cosmetics 2022-03-21 11:45:15 +01:00
3djcandRaphael Coeffic db3547d45c POC 2022-03-21 11:43:48 +01:00
Peter FeerickandGitHub cc609a6a3b feat: Major serial driver re-write - see #1089 for details
Serial refactor
2022-03-21 19:58:26 +10:00
Raphael Coeffic 213d58d34b NV14: fixed PPM/heartbeat pin polarity
Now it should now correspond to the exact same config as the other radios have hard-wired.
2022-03-21 08:17:56 +01:00
Raphael Coeffic 6804d66bd9 NV14: removed old pulses_driver.cpp 2022-03-21 06:39:17 +01:00
Raphael Coeffic 2eafefdf32 NV14: fixed EXTMODULE_TIMER_IRQ definitions
And moved mixer scheduler timer to TIM12 (as with Taranis)
2022-03-21 06:08:23 +01:00
Peter Feerick 8aaa78ecbe Only show GPS topbar icon if UART_MODE_GPS active 2022-03-21 13:17:51 +10:00
Jonathan HudsonandGitHub 3732d7623f implement canonial terminal back delete (#1712) 2022-03-21 12:58:10 +10:00
Malte LangermannandGitHub 1d7c153979 fix: ST7796S display controller detection on NV14 is unreliable, disable for now (#1714) 2022-03-21 10:37:01 +10:00
Raphael Coeffic 04c719b180 Fixed telemetry mirroring for internal and PXX2 external modules 2022-03-20 16:30:59 +01:00
Raphael Coeffic 9fdd5397f6 USB Serial: "VCP" instead of "Debug" 2022-03-20 16:30:59 +01:00
Raphael Coeffic d99a46a3bc Enable CLI & ENABLE_SERIAL_PASSTHROUGH on NV14 by default 2022-03-20 16:30:59 +01:00
Raphael Coeffic 9c9f77a2a9 Do not allocate memory for LUA Rx fifo from the USB ISR
Rather use explicit allocation when the serial is set as the on-demand method that was used previously.
2022-03-20 16:30:59 +01:00
Raphael Coeffic 55a08d2f9d Fix windows & Mac packaging 2022-03-20 16:30:59 +01:00
Raphael Coeffic 2a1b803c47 Fix simu led driver 2022-03-20 16:30:59 +01:00
Raphael Coeffic bc75bed8c8 Default VCP mode to CLI 2022-03-20 16:30:59 +01:00
Raphael Coeffic 4559dfc2b2 No telemetry mirror exception for the MPM
Fixes #1104
2022-03-20 16:30:59 +01:00
Raphael Coeffic f4b1892b99 Remove overwrite protection on debug output callbacks 2022-03-20 16:30:59 +01:00
Raphael Coeffic b25aaaa431 Remove extern declaration of auxSerialRxFifo 2022-03-20 16:30:59 +01:00
Raphael Coeffic d9cde6afec Fix HAL trainer signal definitions 2022-03-20 16:30:59 +01:00
Raphael Coeffic 5544116303 Cleanup trainer/heartbeat conflict resolution 2022-03-20 16:30:59 +01:00
Raphael Coeffic ae54c9bf99 Some cleanup and RX buffer size increase to 128 bytes on targets with SDRAM 2022-03-20 16:30:59 +01:00
Raphael Coeffic 4ee41afe5a Disable telemetry input, SBUS trainer and GPS on VCP
This would require an additional rx buffer to support getByte() properly.
2022-03-20 16:30:59 +01:00
Raphael Coeffic d39f3e058c Add support for CLI on AUX1/AUX2 2022-03-20 16:30:59 +01:00
Raphael Coeffic e5f7da0802 Start VCP serial according to config 2022-03-20 16:30:59 +01:00