Commit Graph
3622 Commits
Author SHA1 Message Date
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
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 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
dlktdrandPeter Feerick 172caf09bc Fix SBUS period not functioning, use defines over fixed numbers
SBUS period wasn't functional before. It was using the ppm.framelength, both in color and B/W.

Reduced maximum period to 32.5ms as it overflows the unsigned 16bit int otherwise

Tested with scope, color only.
2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 5ef5b1e282 Fix Sbus single stepping 2021-11-04 15:25:34 +10:00
Raphael Coeffic ba6881eb0f Remove compiler warning about potsPos[idx] 2021-10-31 09:30:21 +01:00
Peter FeerickandPeter Feerick 2b0a4ab27c Remove BMP_ARGB4444 override since autodetected
Fixes #966
2021-10-29 10:15:03 +10:00
Peter FeerickandPeter Feerick cd84f8665a Use ModelTextEdit in model edit screens!! 2021-10-28 09:28:17 +10:00
Peter FeerickandPeter Feerick 2f3919c4b9 Rebuild window when SF entry cleared
Resolves #322
2021-10-28 09:28:01 +10:00
eshifriandPeter Feerick 7aec59f05c Bypass widget options setup when they are not available #890 2021-10-27 09:41:54 +10:00
Peter FeerickandPeter Feerick 3041185ec3 Fix channel override icon state not being updated
Reported by @mervdale
2021-10-27 09:39:03 +10:00
Peter FeerickandPeter Feerick 8bb04e2a38 Fix widget options not triggering storageDirty
Fixes #958
2021-10-27 09:38:18 +10:00
eshifriandPeter Feerick 036af8e3e2 save timer name #949 2021-10-27 09:17:57 +10:00
eshifriandPeter Feerick e4b5460e5c initialize timers array #943 2021-10-25 12:36:49 +11:00
eshifriandGitHub 4e571c1325 Improvements to time and timer display #911 (#912)
* Fix time display #911

* move TIMEHOUR definition

* change time format

* Refactoring

* rename

* remove unncessary code

* Change hour/minute format

* pack TimerDisplayOptions structure
2021-10-25 12:36:16 +11:00
2b8dfeef59 Fix PNG transparency not working 🙂 (#878)
* Force BitmapBuffer format for widget ModelBmp and the file viewer
This patch run with the patch fix-transpareny in libopenui

* Bump libopenui

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-24 10:58:30 +11:00
Jesper FrickmannandGitHub 69a465f0e2 Remove all radio predefined colors except BLACK and WHITE (#882)
* Removed all "Basic color definitions" except BLACK and WHITE in colors.h
Please ref. discussion on Discord: https://discord.com/channels/839849772864503828/839856795781431317/895858311579181066

* Removed theme color from the bootloader and replaced by RGB() like for e.g. green.

* Wrong color in Value widget default background color; should be white, not black
2021-10-16 22:34:31 +11:00
520eac3e4f Format times better for timer widget and statistics times (#896)
* Fix widget timer.
Modifie getStrString() for  using hms

* Timer over blink with COLOR_THEME_WARNING
Timer unit in uppercase

* Use lowercase unit with small timer display, use uppercase unit in large
display

* Auto formatting

Co-authored-by: Runsys16 <rene.negre@orange.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-15 21:32:24 +11:00
Jesper FrickmannandGitHub ecf386e71f Fix certain Lua script errors hanging the GUI (#899)
* Fixed a bug where a standalone Lua script w/o a run function will hang the GUI on non-color radios

* Prevent Lua standalone window from opening if Lua failed on load

* Fixed scroll down key in TX12 simulator
Copied key definitions from TX16S

* Fixed the Lua error trying to call nil value when no scripts are loaded.

* I messed up in the previous commit; now it does not freeze and it does not call nil.
2021-10-15 12:03:23 +11:00
Ishay TrattnerandPeter Feerick 38aba6a8cc fix throttle curve wont reset in statistics #841 2021-10-13 16:54:36 +11:00
7928e5bc20 [NV14] Add range check button and power level choice (#857)
* add range and high power to MV14

* remove spaces

* fix compilation

* compilation fix 2

* Whitespace cleanup and placate git

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-13 16:45:52 +11:00
Jesper FrickmannandGitHub d3ab7f9c61 Fix LUA=NO, remove ModelMixerScriptsPage when support not enabled (#869)
* Trying to align LUA options with radio/src/CMakeLists.txt
-DLUA=NO:  no Lua of any kind
-DLUA=ON:  everything but mixer scripts
-DLUA=YES: also mixer scripts

* Color LCD with -DLUA=NO is probably a rare combination, so it needed a little help with #defines.

* Some strange error using floor function w/o <math> - probably because -DLUA=NO is not normally used w/ color.
2021-10-11 10:37:06 +11:00
Peter FeerickandPeter Feerick 7d215dd809 Disable MixerScriptsPage if both required flags are not set (#879)
* Disable MixerScriptsPage for 2.5 release builds
Since it doesn't work anyway without LUA=Y

* Only enable tab when both flags set
2021-10-07 19:35:54 +10:00
Peter Feerick 8bb10178d9 Change from PRIMARY2 to PRIMARY1 2021-10-07 18:22:33 +10:00
Peter FeerickandPeter Feerick 2d75eafc4d Make dialog big enough for five option widgets 2021-10-07 10:39:53 +11:00
kkoenig1@optonline.comandPeter Feerick 2c7e175b56 fix comments in yml theme files 2021-10-07 10:38:38 +11:00
kkoenig1@optonline.comandRisto ab9d026f17 fixed case insensitive compare 2021-10-06 16:16:44 +02:00
Peter FeerickandGitHub 088051f3bb Use B&W for poweroff animation (#862)
* Use theme color for poweroff

* Also set animation color

* Changed to black bg, white animation
Per @JimB40 direction 😁
2021-10-06 22:45:33 +11:00
Peter FeerickandGitHub 247d2b0fd8 Statistics page theming + ENTER fix (#872)
* Statistics screen theming
Basically none of the text was using theme colours.

* Formatting

* Use COLOR_THEME_PRIMARY2 for prefixes

* Remove NO_FOCUS stopping reset button from working
Fixes #841
2021-10-06 22:14:49 +11:00
Raphael CoefficandRisto 155d55dff8 Theme manager: fix paths 2021-10-04 18:51:55 +02:00
rotorman cf7cf79dc3 Compile fix 2021-10-04 16:40:45 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
9cb6d73947 Implementation of Theme Switching and Persistence (#839)
* initial support for color theming using yml files in the THEME directory

* initial theming support using yml files (without yml support)

* fixed issues with themes actually working on radio.

* fix another issue with drive access

* more theme changes.  Added author, and info to display.  Also display an image of  the theme if it is present.

* theme files now support both RGB() and 0x syntax

* quick fix for possible variable overflow.

* more tweaks after JimB tested

* fixed layout issues with NV14 and also added word wrap correctly.

* added edgetx headers to new string functions.

* Whitespace / unused code cleanup

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-04 23:27:08 +11:00
eshifriandPeter Feerick 6c74af974c When changing widget go directly widget settings 2021-10-04 21:51:47 +11:00
eshifriandPeter Feerick 0cbb14bc11 Increase exit button on the widgets setup page 2021-10-03 12:00:00 +11:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
Peter FeerickandRaphael Coeffic 0e71cb180d Make 'back' hitbox bigger for touch 2021-09-29 19:12:37 +02:00
Raphael CoefficandRaphael Coeffic bb4eedd073 [bw] set multi binding mode only if multimodule 2021-09-29 19:08:17 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
2f65ec4c58 Lots of color fixes and screen enhancements (#833)
* consolidated all color fixes and screen enhancements into one new branch

* Bump libopenui

* enhanced telementry sensor display

* fix discover and add sensor buttons on NV14.

* changed quick menu to not use theme colors as per JimB.  Fixed telemetry buttons for NV14

* fix colors on trainer page

* Merge cleanup

* Update libopenui

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-29 22:27:11 +10:00