Commit Graph
16677 Commits
Author SHA1 Message Date
elecpowerandPeter Feerick 53d6c0344b Cpn new curves (-100,-100) to (100,100) 2021-11-20 19:08:39 +10:00
rotormanandRisto 4ca26b3cae Set globalData.flyskygimbals immediately true on NV14, so that ADC init runs correct path without waiting for first successful telegram from gimbals. 2021-11-19 21:33:03 +01:00
rotormanandRisto 80a51837c1 Automatically detect FlySky digital hall sticks on X10-class radios without necessity of build-time CMake option FLYSKY_HALL_STICKS.
Added special UART4 init to sample if FlySky sticks are present or not.
Added boolean globalData.flyskygimbals to save the detection result.
Removed FLYSKY_HALL_STICKS and FLYSKY_HALL_STICKS_REVERSE CMake build options.

Tested on two RM TX16S radios, one with FlySky digital hall sticks and second with stock analog sticks.
2021-11-19 21:33:03 +01:00
Peter Feerick 1002fddd12 Add include for NV14 found missing in #1082 2021-11-19 13:45:54 +10:00
Peter FeerickandGitHub 3e170e3cf8 [github] Reword PR template text 2021-11-19 11:49:37 +11:00
Peter Feerick 8f55fb0ffa libopenui: NumberEdit set min/max if fast scroll goes out of bounds
Resolves #399
2021-11-18 11:17:43 +10:00
Malte LangermannandPeter Feerick 849cc5d5b3 fix simu and simulator touch slide 2021-11-18 10:55:41 +10:00
Peter Feerick 15a1981d6e Fix simulated touch not working in simu
Resolves #1063
2021-11-17 10:41:58 +10:00
Peter Feerick 38308f6bef libopenui: Adjust theme constants used by Menu 2021-11-16 11:52:46 +10:00
CliffandGitHub 28da5e0447 Add live data to telemetry edit screen (#1047)
* Add live data to telemetry edit

* Move live data to top bar

* Add extra room for sensors button

Right side of telemetry ID list is being cut off. Changing to 38 gives room

* Remove incorrect comment

Seems self explanatory. I don't think this needs to be here at all.
2021-11-16 12:47:49 +11:00
ErNisandPeter Feerick 3aa21d5310 Taranis Bootloader: If EEPROM is not used - menu should not contain 'Restore EEPROM' 2021-11-16 11:25:27 +10:00
Peter FeerickandPeter Feerick 574658d616 Bump libopenui for companion PR 2021-11-16 11:21:04 +10:00
gagarinlgandPeter Feerick f70814c778 code cleanup 2021-11-16 11:21:04 +10:00
gagarinlgandPeter Feerick 8360434516 touch on/off with backlight on/off is now working for TX16s, untested, but implemented for NV14
simulator for tX16s and NV14 works
2021-11-16 11:21:04 +10:00
gagarinlgandPeter Feerick ced9df9510 started implementing backlight tracking (unfinished)
horus touch driver internally tracks touch state and returns the state on read to make in independed of the mainwindow touchState
2021-11-16 11:21:04 +10:00
Peter Feerick 52013da098 Clear buffer before drawing background image
Fixes #1058 , prevents alternating garbage drawn every cycle
2021-11-15 22:45:01 +10:00
Jesper FrickmannandGitHub f1baa383ae Fix standalone Lua script screen flicker and improve error messages (#982)
* Relax assumptions about when Lua is called in foreground and background

* Start Lua cycle timer both in foreground and background
Do not assume that background/foreground alternates

* Lua is called at every Standalone GUI cycle instead of 5 Hz
Since Lua preempts every 50 ms or so, the GUI should remain responsive.

* In standalone script, only call Lua once per GUI cycle, to avoid messing up buffer handling.

* Revamped error reporting for Standalone and Telemetry Lua scripts

* Font size for Lua error is reduced from XL to L on color if LCD_W < LCD_H

* In drawTextLines, also possible linebreaks for opening brackets.

* Smaller font for error message on tall color screen

* Make titlebar height match font size on narrow LCD
2021-11-15 12:57:14 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
7298f0ff00 Theme editor (#971)
* Add theme editor
- added theme editing support to radio
- color editing controls
- split screen into browser and editor
- removed dead code from coloreditor,
- new radio theme editing icon

* Resolve compile error & merge cleanup

* 1. fix exit key press in ThemeEditor.  It was not exiting screen
2. added ability to touch PageButton() on ColorEditPage()

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-11-15 12:36:56 +11:00
Jesper FrickmannandGitHub 30780d82ec [lua] Add shared memory variables which can be accessed from Lua widgets and other Lua scripts (#1018)
* Issue #132
Added 16 shared memory variables which can be accessed bot from Lua widgets and other Lua scripts.

* Notice Only available on radios with color display
2021-11-13 16:10:33 +11:00
Peter Feerick b4903d8d6f Bump libopenui 2021-11-12 11:53:07 +10:00
eshifriandPeter Feerick 696a761c91 Split window touch toр carousel start #981 2021-11-12 11:20:38 +10:00
Malte LangermannandGitHub 5614646861 Improve backlight handling on color lcd radios (#998)
* no more backlight off mode for color lcd radios
disable backlight input controls in radio setup screen, when they are not used by the selected backlight mode
force backlight on to be at least the brightness of backlight off

* do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON.

* Revert "do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON."

This reverts commit e153a8dc658d53f5420c912e7543d6d0a9fe6ed9.
2021-11-12 12:19:45 +11:00
Raphael CoefficandRaphael Coeffic c39420bde7 Fix NV14 linker script 2021-11-11 22:22:05 +01:00
Raphael CoefficandGitHub 6c1ca71740 Merge pull request #991 from EdgeTX/access-options
Access options / menus
2021-11-11 19:09:29 +01:00
Raphael Coeffic 78442c1cec Re-added inadvertently removed module options 2021-11-11 08:13:53 +01:00
Peter Feerick 493c90d792 Lets *not* use PRs for support 2021-11-11 10:50:53 +10:00
Raphael CoefficandGitHub 11e63f403c Merge pull request #1022 from JyeSmith/MEGA-BAUDS-not-milli
MEGA BAUDS not milli
2021-11-10 12:59:22 +01:00
JyeandGitHub c20cd2539f MEGA BAUDS not milli 2021-11-10 21:26:57 +10:00
Raphael CoefficandGitHub 0ca8184f2f Merge pull request #549 from EdgeTX/yaml
Yaml support
2021-11-10 11:23:31 +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