Commit Graph
100 Commits
Author SHA1 Message Date
philmozandGitHub 3051f70625 fix(radio): Custom mix script as SOURCE not parsed correctly (#4231) 2023-11-06 09:22:14 +10:00
philmozandGitHub 7190f00374 chore(radio): Cleanup startup code, fix throttle warning led color, startup haptic option (#4027) 2023-11-05 18:53:26 +10:00
philmozandGitHub 89378e294f fix(radio): Don't update YAML files on SD card if radio in emergency mode (#4264) 2023-11-04 15:23:24 +10:00
philmozandGitHub 4655c56f39 fix(color): Bootloader tick mark overlap by version string (#4275) 2023-11-02 12:39:32 +10:00
f5593c44e8 fix(color): Bitmap name truncation if exactly 14 characters long (#4232)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-10-31 11:40:49 +10:00
philmozandGitHub 8fb69b8041 feat(color): Improved hardware key navigation (TELE) (#4219) 2023-10-31 10:28:57 +10:00
b6a691fbcb fix(color): Don't display long press widget menu if no options (#4263)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-10-31 09:54:04 +10:00
philmozandGitHub f6b119bd24 fix(color): Refresh main view if pot or slider configuration changed (#4268) 2023-10-31 09:46:55 +10:00
1bb624cb43 fix(color): Broken search for model specific audio files for switches (#4162)
Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-10-30 19:07:47 +10:00
philmozandGitHub 745bb8d768 fix(color): Theme edit preview not working with LVGL styles (#4180) 2023-10-30 13:00:58 +10:00
philmozandGitHub 374c782f7e chore(color): Cleanup layout refresh logic (#4074) 2023-10-30 10:24:12 +10:00
philmozandGitHub 58573d3315 chore(color): Reduce font FLASH storage (#3881) 2023-10-29 11:29:14 +10:00
f101aef582 fix(color): 'Reset' SF does not show telemetry parameter when edited (#4237)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-10-25 11:27:35 +10:00
philmozandGitHub 1ca1c92087 fix(bw): Use correct offset for DBLSIZE language font (#4194) 2023-10-20 10:52:10 +10:00
philmozandGitHub eaabb2ce97 fix(color): Reading of RGB theme colors in hex format (#4222) 2023-10-19 11:46:02 +10:00
philmozandGitHub 1e3f919146 fix(color): 'SWITCH' widget option logic, enable for Lua widgets (#4190) 2023-10-17 07:22:25 +10:00
philmozandGitHub 4128b762dd fix(color): 'MPM Scanning' popup blocking hardware keys (#4213) 2023-10-16 20:56:21 +10:00
philmozandGitHub c4a2c46d92 fix(color): Scale SF backlight value to user selected min/max backlight values (#4060) 2023-10-16 18:54:12 +10:00
philmozandGitHub d473fab90c fix(cpn): Align brightness settings with radio, Speaker Volume values (#4156) 2023-10-16 18:18:55 +10:00
philmozandGitHub 7bf24f668a feat(color): Improve navigation with SYS and MDL keys (#4111) 2023-10-16 16:17:30 +10:00
philmozandGitHub c0a6503960 fix(color): Gauge invertRect assumed WHITE rather than PRIMARY2 (#4164) 2023-10-16 16:05:54 +10:00
philmozandGitHub 7002a6c0e8 fix(color): Keep last selected button focused within Button Matrix (#4136) 2023-10-16 15:54:47 +10:00
philmozandGitHub 661542a474 feat(color): Add tick marks to Sliders with less than 10 steps (#4125)
Also update Slider style so not so overwhelmingly large
2023-10-16 15:38:41 +10:00
philmozandGitHub ede1d0081d feat(color): Improvements to switch and source select menu (#4104) 2023-10-13 20:39:28 +10:00
philmozandGitHub 614ff284db feat(radio): Show model level setting for 'Enabled Features' when altering radio level setting (#4036) 2023-10-13 20:05:16 +10:00
philmozandGitHub 837677b3ef feat: Convert PPM_UNIT build option to runtime radio setting (#3993) 2023-10-10 19:47:50 +10:00
philmozandGitHub 746dcb06e7 chore(color): Set height of edit fields to match other UI elements (#4169) 2023-10-08 18:10:40 +10:00
philmozandGitHub 1e925edf4a fix(color): Set default value for various number edit fields (#4163) 2023-10-06 11:05:00 +10:00
philmozandGitHub cec212dcd9 feat(color): Add 'View Text' option for .lua files in SD manager (#4165) 2023-10-06 11:04:43 +10:00
philmozandGitHub ee73e95077 feat(color): Add Enable/Disable option to SF/GF popup menu (#4157) 2023-10-06 10:52:30 +10:00
philmozandGitHub 71143e797b feat(color): Remove splash screen and boot loader background, add version info (#4139) 2023-10-03 18:47:56 +10:00
philmozandGitHub 83ec541de0 fix(color): Edit range and display value for switch play delay (#4154) 2023-10-03 11:26:17 +10:00
philmozandGitHub 5391d68364 fix(color): Clear edit mode when page closes (#4152) 2023-10-03 11:11:18 +10:00
philmozandGitHub a9f468e82a fix(radio): Limit year range for RTC to prevent overflow (#4124) 2023-10-03 10:59:29 +10:00
philmozandGitHub 776b64c469 feat(radio): Disable Special Functions when feature turned off (#4116) 2023-10-03 10:57:09 +10:00
philmozandGitHub 54cc71c494 fix(color): Clipped progress bar when flashing bootloader/module firmware (#4142) 2023-10-01 10:04:45 +10:00
b733ec4eae chore(radio): Cleanup translation files. (#4015)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-09-29 11:00:28 +02:00
4c1de94a6b fix(b&w): Fix radio UI display for switches on X9D, X9D+ and X9D+2019. (#3996)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-09-29 10:27:44 +02:00
ef6316ef6c chore(radio): Move const data from RAM to FLASH. (#4098)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-09-29 10:19:06 +02:00
397d30d283 fix(color): Remove unnecessary scrolling on trainer setup page. (#4123)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-09-29 10:17:36 +02:00
philmozandGitHub a60cf67fb2 fix(radio): Lua insertMix function not working (#4129) 2023-09-29 11:34:34 +10:00
4c95d665b6 fix(color): Make toggle switch UI consistent with other UI elements (#4110)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-09-27 19:45:06 +10:00
philmozandGitHub c502dbeaee chore(radio): Reduce size of the data structures in FLASH storage (#3979)
* Reduce size of the YamlNode structure in FLASH storage.
Fix compiler warning.

* Further reduction of FLASH used by YamlNode structures.

* Reduce size of sensor definition arrays and audio tone volumes array.
2023-09-24 14:18:11 +10:00
philmozandGitHub bb7deefc4f fix(radio): Size of fields on sensor edit page for portrait layout (#4096) 2023-09-24 10:43:42 +10:00
philmozandGitHub daf6918f5a fix(color): Make direction of shutdown animation consistent with B&W (#3988) 2023-09-23 16:17:33 +10:00
philmozandGitHub 8778856d26 fix(color): Allow scrolling of the version info popup with rotary encoder (#3987) 2023-09-23 14:57:44 +10:00
philmozandGitHub 55217dc303 fix(color): Multiple fixes and improvements to switch and source popup menus (#4055)
* Fixes for switch and source select popup menus.
- Fix missing GV filter in source select
- Ensure all options are included in one of the filters
- Add misc filter to switch select (for TELE and ACT options)
- Show inverted and no-selection options when filter selected
- Make menu line height consistent.

* Fix selected item in list when filter applied.
2023-09-23 11:21:12 +10:00
philmozandGitHub c783f16b20 chore(color): Remove unused code from 'About EdgeTX' popup (#4092) 2023-09-23 10:57:21 +10:00
philmozandGitHub 497540b4a2 fix(color): Invalid popup menu entries for Trainer SF (#4091) 2023-09-23 10:54:42 +10:00
philmozandGitHub 9bec7721e7 fix(color): Ensure all items are updated on theme change in user interface settings (#4084) 2023-09-22 18:55:24 +10:00
philmozandGitHub 752954fec5 fix(color): Update background color on user interface page when theme changed (#4078)
* Update background color on user interface page when theme is changed.

* Refresh without redrawing entire page when theme changes.

* chore: Remove completed TODOs, formatting
2023-09-22 15:34:32 +10:00
philmozandGitHub 45011771c0 chore(radio): Use existing 'hash' function to detect USB joystick settings change (#4081) 2023-09-22 15:21:41 +10:00
philmozandGitHub 22a4e67117 feat(color): Add support for information bubble popups (#3903)
* Add information bubble popup window.

* Use fixed BLACK and WHITE colors.
2023-09-21 19:47:46 +10:00
philmozandGitHub 0aff002c8a chore(color): Cleanup and optimise EdgeTxTheme class (#4013) 2023-09-21 19:39:05 +10:00
philmozandGitHub 661de78464 chore: Reduce AFHDS3 console noise when running simulator (#4075) 2023-09-21 18:54:50 +10:00
philmozandGitHub 662bcb08d0 fix(color): Detect changes to telemetry sensors that return strings (#4071) 2023-09-20 11:40:08 +10:00
philmozandGitHub e4f845c844 chore(radio): Fix some compiler warnings when building firmware (#4058) 2023-09-20 11:16:48 +10:00
65ee80f159 fix(radio): Fix handling of blank lines in YAML files (#3762)
* Fix handling of blank lines in YAML files.

* Added some basic EOL / blank line unit tests

---------

Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
2023-09-07 21:25:09 +10:00
philmozandGitHub e485db93ca feat(radio): Delay warnings until after splash screen finished (#3887) 2023-09-07 20:33:55 +10:00
philmozandGitHub 4d623bb63f chore(radio): Don't save joystick configuration data to EM backup storage (#4022) 2023-09-07 16:07:42 +10:00
philmozandGitHub f55f9c4316 chore(color): Remove unused color bitmap images (#4001) 2023-09-04 18:59:52 +10:00
philmozandGitHub 9f4997caea chore(bw): Reduce FLASH used by 212x64 startup/shutdown animations (#3989)
* Reduce FLASH storage of startup/shutdown animation for 212x64 LCD B&W radios.

* Simplify bitmaps.

* Support drawing animation bitmaps with transparency.
2023-09-04 14:10:50 +10:00
philmozandGitHub e56cffafa9 feat(color): Replace static bitmap QR code with LVGL generated QR code (#3880) 2023-08-28 19:07:59 +10:00
philmozandGitHub dcc2118d19 chore(color): Replace dynamic_cast with virtual functions, disable RTTI to reduce FLASH usage (#3885)
* Replace dynamic_cast with virtual functions and disable RTTI.

* Cleanup TopBar class hierarchy.

* Fix compiler warning.
2023-08-28 12:55:15 +10:00
philmozandGitHub 96d94eeeab feat(color): Show active/configured timers on model setup page (#3972) 2023-08-28 12:15:04 +10:00
philmozandGitHub 7aadf5e3ef fix(color): Slider control blocking RTN key, slider rotEnc activation (#3966)
* Fix for slider control blocking RTN key.

* Fix rotary encoder activation for slider.
2023-08-26 21:18:35 +10:00
philmozandGitHub c1e83c2026 fix(color): Buttons on model setup page not showing active state (#3942) 2023-08-26 20:52:32 +10:00
philmozandGitHub f7037a92b0 chore(color): Model setup page cleanup (#3899)
* Cleanup model setup page code. Make buttons consistent height.

* Remove unused object constructor.
2023-08-09 18:29:59 +10:00
ac4aeef579 chore(color): Use strAppend and strncmp on widgetName to avoid termination issues (#3905)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-08-05 18:09:53 +10:00
philmozandGitHub 659a25a6cd fix: Fix 'PAGE <' key not working for menu toolbar (#3902) 2023-08-04 21:59:05 +10:00
bd47b491ba fix(color): Fix widget default colors
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-08-04 19:26:49 +10:00
philmozandGitHub 4272a03025 feat(color): Convert top bar display in main view into widgets (#3700)
* Convert radio info (USB, volume, signal strength), date/time and internal GPS display from top bar into widgets.

* Fix B&W build.
2023-08-04 12:14:31 +10:00
philmozandGitHub 69338ab0ab chore(color): Libopenui refactor (#3614)
* Refactor object creation logic.
Remove unused LVGL features.

* Remove unused files.
Fix height for widgets.

* Rename 'OpenTxTheme' class to 'EdgeTxTheme'.
Cleanup commented out code.
Cleanup unused code from 'etx_lv_theme.cpp'.

* More cleanup.

* Move more style code to etx_lv_theme.cpp

* Update license

* Make default button height match other controls.

* Fix curve edit layout.

* Fix layouts.

* FormWindow and FormGroup provided identical functionality - rename FormGroup to FormWindow and remove duplicate.

* Simplify menu icon handling.
Remove unused 'flysky.cpp' file.

* Fix window size change.

* Simplify page header code.
Fix statistics view page.

* Remove unused file.
Replace redundant 'Subtitle' class with a macro.
Fix compiler warnings.

* Fix compiler warning in LvglWrapper.cpp.
Remove unused code in static.h.
Simplify about page.

* Rename ICON_OPENTX to ICON_EDGETX.

* Fix github build error.

* Fix github build error (attempt 2).

* Move ButtonMatrix styling to etx_lv_theme.cpp.

* Scroll bar consistency.

* Use styles for ButtonMatrix text color.

* Use 'active' color for selected USB advanced setup buttons. Move error message to bottom of page.

* Create style for popup window title bar.
Simplify advanced USB setup code.
Remove unused libopenui/carousel.* files.

* Add style for modal popup content.

* Remove unused BUTTON_BACKGROUND flag.

* Replace GridLayout with FormWindow. Remove unused gridlayout.h file.

* Fix rebase.

* Merge ChoiceEx class into Choice class code.
Remove unused CurveKeyboard.

* Use LVGL bar for progress indicator.
Update only style colors when theme changes (don't recreate all style settings).

* Move ProgressDialog class to dlalog.h/dialog.cpp files.

* Simplify trim and slider code in main view.
Simplify the hardware inputs code.
Fix dialog size.
Remove unused code in layout factory.

* Cleanup unused code.

* Add style for FormWindow class.
Merge BaseNumberEdit class into NumberEdit class and remove BaseNumberEdit.
Remove more unused files.
Cleanup libopenui_config.h files.

* Re-organise libopenui include files to fix build error.

* Fix build error.

* Add missed styles to etx_lv_theme.cpp.
Delete commented out #includes.
More cleaning up of libopenui_xxx.h files and dependencies.
Re-enable LVGL CHECKBOX feature.

* Merge libopenui_helpers.h into opentx_helpers.h file.

* Fix firmware build.

* Use object constructors for LVGL object creation as suggested by gagarinlg.
Add style for number edit text alignment.
Fix background color for focussed control.

* Move color related stuff from libopenui_defines.h to colors.h.
Remove need for libopenui_depends.h file.

* Merge libopenui_types.h content into opentx_types.h file.

* Rename CheckBox class to ToggleSwitch.

* Restore code to update flight mode text color when theme changes.

* Cleanup some more unused code.

* Remove redundant theme.h file.

* Fix rebase.

* Fix button matrix style.

* Fix rebase

* Fix rebase

* Ensure correct initialisation of Choice object.

* Fix rebase.

* Make the slider control bigger to make touch activation easier.

* Fix build error.

* Fix slider logic and cleanup code.

* Use ACTIVE theme color for inputs, mixes, LS, GV and SF.

* Improved border width consistency and focussed state consistency.

* Remove duplicate copy of the default theme colors.
2023-08-04 11:04:54 +10:00
philmozandGitHub c2ced5a04f chore: Remove duplicate TR_SF_TEST entries from translation files (#3884) 2023-07-31 10:06:07 +10:00
f1c98955a7 fix(color): Switch not being auto detected when moved in Flight Mode edit page (#3875)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-07-30 12:10:31 +10:00
9e7a331fa6 feat: Splash screen delay opt for colorlcd, startup sound disable opt (#3451)
* Enable startup splash screen duration for color LCD radios.
Add option to disable startup sound.
Add Companion support for changes.

* Add translation string for Hebrew language file.

* Fix rebase.

* chore: Add T20

* Update translations.

* Update translations.

* Update translations.

* Update translations.

* Right justify radio setup controls.

* Use longer translations for all radios.

* Enable splash screen timeout for NV14/EL18.

* Suspend watchdog timer to prevent EM if long splash display time selected.

* Simplify SPLASH_TIMEOUT code.

* Use WDG_RESET instead of watchdogSuspend.

---------

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-07-30 11:58:28 +10:00
philmozandGitHub 07e9f2384e fix(bw): Font related fixes for B&W radios (#3832)
* Add missing chars to SQT5 extra font image. Fixes language translation issues if using SQT5 font.

* Fix speaker symbol display for CZ translations.
2023-07-28 20:48:47 +10:00
philmozandGitHub 7a85d6f029 fix(color): Expand analog diagnostic page to full height (#3855) 2023-07-28 18:57:15 +10:00
philmozandGitHub e79768baf1 fix(color): When in screen settings, ignore SYS/MDL, treat TELE as RTN (#3845)
* Change behaviour of TELE button on widget setup page to work like RTN button.
Prevents recursive loading of widget setup page.

* Ignore SYS & MDL buttons on widget setup page.
2023-07-25 15:22:16 +10:00
philmozandGitHub 7247906902 chore(build): Add missing source for bootloader debug build (#3826) 2023-07-19 11:27:41 +10:00
philmozandGitHub 27c622b5e8 fix(color): Crash in MPM settings from PR #3637 (#3819) 2023-07-18 11:27:55 +10:00
philmozandGitHub bd92f70056 feat: Support all current timezones for GPS (#3406)
* Support all current timezones.

* Fix function name and calculation for timezone offset.

* Allow setting any time offset value from -12 to +14 in 15 minutes increments.

* Alternate timezone editor in Companion (from elecpower).

* Fix compiler warning.

* chore: Add the T20
2023-07-16 14:02:27 +10:00
philmozandGitHub b0e64c8d6d fix(color): Fix inputs and mixes scroll order (#3785)
* Fix scroll order when adding new inputs and mixes.

* Set focus to first input/mix line, if one exists. Otherwise set focus to '+' button.
2023-07-11 10:18:13 +10:00
philmozandGitHub 2dd76d0964 fix(Lua): Enable 'package' Lua library (#3786)
* Enable 'package' and 'string' Lua libraries.

* Change 'package' library to only load for color LCD radios.
Exclude 'string' library to match 2.8 functionality.
2023-07-10 19:42:12 +10:00
philmozandGitHub a81abf1580 chore: Fix build when GVARS=NO (#3769) 2023-07-06 11:08:06 +10:00
philmozandGitHub c8fce341e8 fix(color): Names and number of buttons on Preflight checks screen (#3747)
* Fix preflight checks screen in 2.10.

* Fix unnecessary side scrolling.
2023-07-05 21:29:21 +10:00
philmozandGitHub 1820ff8d5c fix: Some units not being played (#3742)
* Fix timer unit announcements.
Broken in switch refactor PR.

* fix: dbm unit not being played
2023-07-03 18:53:33 +10:00
philmozandGitHub 2a3825ebe9 fix(cpn): Wrong input offset value saved to YAML if GV (#3707) 2023-06-23 10:37:12 +10:00
philmozandGitHub ee84b46d59 fix(color): Only reset Lua if changing PLAY SCRIPT special function (#3698)
And not PLAY TRACK or BACKGND MUSIC
2023-06-19 12:30:36 +10:00
philmozandGitHub 091b589e6b fix(color): Layout scroll issue with MPM protocol option settings (#3663) 2023-06-08 11:31:04 +10:00
philmozandGitHub d4b7f55e5c fix(colorlcd): Show/hide 'Delete All' button on the telemetry page based on sensor count change (#3631) 2023-05-31 13:39:33 +10:00
philmozandGitHub 48e5d141aa fix(color): Fix icons and page colors when theme is changed (#3608)
* Fix icons colors when theme is changed (broken in 3547).

* Update GV, FM and telemetry page colors if theme changes.
2023-05-23 12:15:33 +10:00
philmozandGitHub 9db0526b6d fix: Window sizes where the ComboChannelBar is displayed (#3610) 2023-05-23 11:18:26 +10:00
philmozandGitHub 5327c890f2 feat: Add options to disable radio and model menu tabs (#3484)
* Add options to disable radio and model menu tabs.
- Update radio and model data structs
- UI for color LCD radios
- Convert existing 'noGlobalFunctions' property.
- Language strings.

* Make 'theme' control specific to color LCD radios.

* Add B&W radio UI.

* Simplify code, reduce compiled code size.
Fix page count display on model select tab.
Fix GVARS for 212x64 radios.

* Collapse timer sections if timer is off.

* Remove 'Use global functions' checkbox from B&W model setup.

* Make preflight checks, throttle and view options sections expand & collapse (default collapsed).

* Fix build.

* Add view options to companion data classes, save and load values in YAML files.
Fix scrolling for radio setup view options.

* Add Companion UI for view option settings.

* Remove 'Mixes' from list of tabs that can be hidden.

* Updated Companion UI from elecpower.

* Use view options flags to enable/disable functionality:
- skip heli mixer logic if heli not enabled
- Remove heli, gvars and telemetry options from source selection if not enabled

* Remove 'flight mode', 'curve' and 'global variable' settings from input & mix editors if option disabled.

* Rename 'View Options' to 'Enabled Features'.
Put GVAR option under Flight Mode and indent text.
Make relationship between FM and GV more obvious.

* Remove global variable option dependency on flight modes.
Hide FM1-FM8 in global variables if flight modes hidden.

* Hide 'Custom Mixer Scripts' in source selection menu popup if disabled.

* Add translation strings for Hebrew language file.

* Fix typo. Add comment for double call to setCurrentTab.
2023-05-22 20:08:16 +10:00
philmozandGitHub 75ccc4a9a9 fix: Include internal module type in backup data for EM (#3603)
... so radio re-connects to receiver if internal module is in use!
2023-05-17 20:41:09 +10:00
philmozandGitHub f2936931f7 fix(color): Memory leaks when using USB mass storage connection (#3547)
* Fix memory leaks when using 'USB Storage (SD)' connection.
- Lua state 'cache' allocated to both lsScripts and lsWidgets; but only one was being released.
- Default theme bitmaps being reloaded without releasing previously allocated memory.

* Fix icons.
2023-05-17 18:28:29 +10:00
philmozandGitHub 3d6bc638a6 fix: Remove audio queue state check for SF 'Play Sound' action (#3567)
Was preventing sounds running from startup
2023-05-15 21:25:18 +10:00
philmozandGitHub d29317ecd0 chore(cpn): Fix compiler warnings when building (#3383)
* Fix build warnings.

* Rename 'flags' function.
2023-05-15 11:24:54 +10:00
philmozandGitHub 2588e89ca1 fix(color): 'Custom Mixer Scripts' not showing in source selection menu (#3577) 2023-05-10 09:29:07 +10:00
7a083fe0f7 fix(color): Make size/appearance of number/text edit controls consistent with other UI elements (#3481)
* Fix minor layout issues arising from libopenui PR 89.

* chore: Bump libopenui

---------

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-05-07 14:04:35 +10:00