Commit Graph
3657 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic 5d240e4e48 WiP internal CRSF pulses 2021-11-21 11:18:35 +01:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
a9abf028f7 Theme editor tweaks (#1066)
* 1. fixed color of lists to match menu popup as per JimB
2. added more controls to PreviewWindow() of theme editor

* 1. fixed issue with touch.  in theme list now if you touch, you must long press to get menu.  Enter works on short press
2. changed directory structure to new format, as per Issue #897
3. sorted theme list alphabetically and not by random order that the directory comes back in

* 1. make background image work correctly for new theme folder structure
2. sort theme names

* 1. fixed issues with touching previewwindow
2. fixed processing exit button on ThemeEditPage()

* fix focus issue in previewwindow

* layout enhancements for nv14

* more updates to layout

* fix nv14 issues.  Still havnt done performance optimization yet.  Lets merge first.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-20 22:54:24 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
9a795c4126 Move [outputs] "Trim => Subtrims" button to top, change btn text (#1076)
* partial implementation of 354

* implemented screen refresh and test update

* chaged add to move...after much discussion

* change move to add

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-20 22:39:13 +11:00
eshifriandGitHub 3b0e1ab25e Fix slider center beep buttons not highlighting (#1094) 2021-11-20 21:53:55 +11:00
eshifriandPeter Feerick 0dac734f9c fix split touch window for carousel #1088 2021-11-20 20:35:55 +10:00
Raphael CoefficandPeter Feerick 582cbc13a5 std::string::data() gives no guaranty on 0-termination 2021-11-20 19:18:09 +10: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
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
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
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 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
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 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 cc9b146713 Output widget colors as such 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 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 17d4ea5c62 Fix color lcd 2021-11-10 11:07:02 +01:00
Raphael Coeffic 397674021e Improved logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic f932e9e12c Further confined v220 data structures 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 c696313a4e Use simple scheme with direct model slot to model filename 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 5e0d0131b4 Added EEPROM conversions to YAML 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 985a8760bb WiP 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 9a31683bee Init value types properly from factory option defs
This is needed to dump the options with the proper type into yaml file.
2021-11-10 11:06:58 +01:00
Raphael Coeffic 94764d8fa9 Updated X10 generated structs 2021-11-10 11:05:47 +01:00
Raphael Coeffic 5142d9f4fc Fixed NV14 target 2021-11-10 09:41:40 +01:00
Raphael Coeffic 668174dd53 Use RSSI dialog for ACCESS as well 2021-11-10 09:02:24 +01:00
Raphael Coeffic f6789866c2 Properly set the receiver id before fetching settings 2021-11-10 08:22:54 +01:00
Raphael Coeffic 26756a6a0b Fix binding being canceled on BindWaitDialog being closed 2021-11-09 11:28:45 +01:00
Peter FeerickandGitHub 63bfc1cf5a Fix CurveEdit crash on NV14 and enable horizontal scolling (#965)
* [nv14] Add crash causing missing curveDataEdit

* Allow horizontal touch sliding
Thanks for catching this @kevinkoenig

* Prevent hori scroll where it shouldn't scroll
Why `model_inputs` scrolls is still a mystery, but it behaves now

* DRY is in effect
2021-11-08 22:07:16 +11:00
Peter FeerickandGitHub e6697639c7 Rename modelBmp using new 'displayName', add more options (#544)
* Make img buf only size of img not whole widget

* Don't draw buffer if there's no image

* If there's no image, draw model name

* Add some options, draw model name if img not set
Add options for text colour, size, fill enable and colour

* Use valid values for defaults

* Get right colours

* Add concept of a 'friendly name to widgets'
Allows for separation of internal and user visible names

* Use new theme constants

* Use right version of libopenui

* `displayName` instead of `friendlyName`

* Allow using theme colour or custom for name
2021-11-08 21:27:38 +11:00
Raphael Coeffic 17bbb8b799 Fixed R9M ACCESS binding 2021-11-08 10:27:09 +01:00
Raphael Coeffic ce97a9fc77 FIx "cannot bind packed field" (GGC-ARM) 2021-11-07 20:37:59 +01:00
Raphael Coeffic b7ddca5fdb Exclude PXX2 module and receiver option UI files when PXX2 not enabled 2021-11-07 20:17:43 +01:00
Raphael Coeffic 33e5aac846 Module and receiver options 2021-11-07 20:05:58 +01:00
Raphael Coeffic 5fbd4d3b1f Fixed targets without PXX2 support 2021-11-06 17:52:09 +01:00
Raphael Coeffic eb9425678f Fixed registering/binding 2021-11-06 15:59:34 +01:00
Raphael Coeffic 3588c8d963 Cleanup first a bit 2021-11-06 15:59:34 +01:00
Raphael CoefficandRaphael Coeffic 18e339e65c Add support for D16/R9 options
Allows for selecting receiver channels (1-8 / 9-16) and telemetry usage (on/off).

Resolves #941
2021-11-06 15:58:45 +01:00
dlktdrandPeter Feerick d12dd81fcd Should be SBUS not PPM 2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 4ae6152d62 Color LCD Fix SBUS rate. PPM use defines 2021-11-04 15:25:34 +10:00