Commit Graph
3595 Commits
Author SHA1 Message Date
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
Peter FeerickandPeter Feerick c0f792c392 Use correct index on 128 B&W radios for MPM status
Fixes #656
2021-09-29 09:12:44 +10:00
Raphael CoefficandRaphael Coeffic 742336450e [color] Fix subType editing & set default channel start + range on change
Resolves #567
2021-09-27 12:24:44 +02:00
a4af85ef37 Fix module and trainer subform resizing and show NV14 RF module version (#800)
* Fixes #792
* Add RF module FW version
* Clean(er) implementation
* Whitespace changes cleanup
* Cleanup
* Trainer module fix

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-25 11:42:52 +10:00
Peter FeerickandGitHub 580b9b12bc Add missing audio/haptic when set custom failsafe
Fixes #799
2021-09-23 21:11:34 +10:00
Raphael Coeffic b06cbe92bf Fix define for AFHDS2
Resolves #791
2021-09-22 09:58:16 +02:00
Raphael CoefficandGitHub 4907ebbf14 Merge pull request #728 from EdgeTX/nv14-internal-module
Nv14 internal module
2021-09-21 08:18:47 +02:00
Peter FeerickandPeter Feerick 482d00d99d Fixes only one column of models
Resolves #636
2021-09-21 16:18:20 +10:00
Peter FeerickandPeter Feerick b62e8c342d Version string on NV14 had unecessary indent 2021-09-21 16:18:20 +10:00
rotormanandRisto 9570f8595a Removed FlySky digital hall gimbal double value conversion (first using the FlySky factory calibration values min,mid and max to convert to 0 to 4095 and second to convert this value again into EdgeTX internal 11-bit range 0 to 2047).
This has the added benefit of precision increase and also avoiding unnecessary computation. Needed to change to uint32_t, as the jitter removal computation would otherwise go over the 16-bit range. As 16-bit computation can be left for "normal" sticks, added a special define just for FLYSKY_HALL_STICKS.

In addition this PR changes back the radio analogs diagnose page second column also for FlySky digital hall sticks to show +/- 100 again, as now with first and second column we already cover all internal ranges used.

Tested on RM TX16S with FlySky digital hall sticks.
2021-09-21 08:11:26 +02:00
Raphael CoefficandPeter Feerick 64a87812bb [color] do not use setValue() in SourceChoice / SwitchChoice
This potentially deletes the source/switch choice, which then triggers a "use-after-free".

Resolves #759
2021-09-20 11:04:11 +10:00
Raphael Coeffic 571465668f Fixed ifdefs for AFHDS2A & AFHDS3 2021-09-19 16:26:10 +02:00
Raphael Coeffic bc2a0810bd AFHDS2A is not available for external modules 2021-09-19 16:17:47 +02:00
Raphael Coeffic 4a79480e5e Prevent AFHDS2A from being used as an external module
The pulses code for that module does not support it.
2021-09-19 16:17:47 +02:00
Raphael Coeffic 5e091faba4 Fixed ifdefs 2021-09-19 16:17:47 +02:00
Raphael Coeffic e0a8b3d8c3 Added RX options (PWM/PPM, iBUS/SBUS) 2021-09-19 16:17:47 +02:00
Raphael Coeffic 7e3b06bffd Disable range checking mode on AFHDS2A modules (does not work) 2021-09-19 16:17:47 +02:00
Raphael Coeffic f7af8f1e98 Force set AFHDS2A subType on NV14 2021-09-19 16:17:47 +02:00
Raphael Coeffic 78d8d976b4 Fixed ifdefs 2021-09-19 16:17:47 +02:00
Raphael Coeffic 8d46737e56 Remove useless setFlyskyState()
This is already done in resetPulsesAFHDS2()
2021-09-19 16:17:47 +02:00
Raphael Coeffic e29138f7e3 Draft support internal module NV14 2021-09-19 16:17:47 +02:00
Raphael Coeffic e90c300bf4 Clean-up / renaming MODULE_TYPE_AFHDS3 to MODULE_TYPE_FLYSKY 2021-09-19 16:17:47 +02:00
Raphael CoefficandGitHub 4c1af2bf36 Merge pull request #755 from EdgeTX/fix-299
Fix max # channels and default channel range
2021-09-18 14:13:48 +02:00
CliffandGitHub 3dedcad75a Category editor (#725)
* Allow model moving between categories

* Initial Commit - Categories Editor

* Don't allow move of active models & save

* Create group for categories, add, remove, delete working.

One glitch on add still...

* allow index choice on tabs page build

* Don't allow setting name null

* Change layout

* Null terminate string + save

* Optionally hide delete button

* Allow add a new model on touch if there are none

* Remove seperator

* Fix compiler warning

* Assign not compare

* Add Translation Strings for Model Categories and Models

* Use translated strings

* Update libopenui

* Add extra newline so scrolls proper

* Update libopenui
2021-09-18 21:21:57 +10:00
Peter FeerickandGitHub 47dac14b2f Add codename define, update radio version screens and tweak companion (#747)
* Add codename deffine and update all radio version screens

* Move string, make const and formatting

* Missed parentheses around version number

* Add codename to Companion

* Replace edge-tx.org with edgetx.org

* Change EdgeTX website http links to https
Also consistent URL

* Update copyright string
Leave second version for future years
2021-09-18 20:35:31 +10:00
Raphael Coeffic 9b63f75e1d Fix max # channels and default channel range
Resolves #299
2021-09-18 10:43:55 +02:00
Raphael CoefficandGitHub 734721d824 Merge pull request #746 from pkendall64/fix-baud-rate-defaults
Fix baud rate defaults
2021-09-18 07:12:00 +02:00
eshifriandGitHub 514796fa51 Support input scaling and show telemetry source values (#745)
* support scale for telemetry sensors
* remove clipRectangle
2021-09-17 20:22:54 +10:00