Commit Graph
11851 Commits
Author SHA1 Message Date
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
8be8b51813 feat: Surface mode improvements (#3908)
* feat: surface mode improvements

* fix: surface trim display

* fix: HE missing conditional TR_FM

* fix: Also CN,JP & TW for completeness

Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-09-04 14:08:35 +10:00
Peter Feerick 56d45fa39b fix(he): #3639 regression, missing TR_RANGE_TEST 2023-09-02 20:22:37 +10:00
Peter FeerickandGitHub e832ef6521 feat(color): enable LUA_MIXER, hidden by default (#3973) 2023-09-01 10:01:47 +02:00
3djcandGitHub 1f44053705 fix: PXX1 external module timings (#3941) 2023-09-01 08:27:48 +02:00
06712d9b97 feat: Interactive/progressive preflight checklist (#3564)
* initial version of clickable checklist

* do not display checkboxes for empty lines if checklist is shorter than screen size

* remove checklist exit after completing it
cannot exit menu from menuTextView as level above there is while loop that cannot be stopped from thic place in code

* menu entry to enable and disable interactive checklist

* only when complete interactive checklist is closed

* config updated & not display checkboxes when entered from "View Notes"

* add setup entry for colorlcd

* do not make interactive checkist when loaded from menu

* fix datastruct size after merge

* Companion support for interactive checklist

* mark checklist lines as non-checkable with '=' for B&W radios

* Process only items visible on screen
This is also crucial when it comes to analyse non-checkable items on a checklist, as in this way there is no need to load non-visible items from SD-card

* WIP fix merge problems

* update yaml datastructs

* restore most functionalities for interactive check lists on color LCD radios
currently no automatic line wrapping and you can always exit the checklist, even when it is not fully done

* finalise interactive checklists for color LCD

* fix: rebase/merge issues

* fix: model setup checklist section

* fix: fix 212 model setup

* Re-work of the some of the color lcd checklist code (#3787)

* Move checklist logic to sub-class.
Show model name instead of file name in title, show 'Preflight checks' in title2 for checklist.
Handle long line wrapping of text.
Don't indent lines without checkbox.
Add 'RTN' button when done.

* Code cleanup.

* Simplify code by storing a list of checkboxes instead of scanning LVGL object hierarchy.

* Indent checkboxes to make touch activation easier.
Keep 'RTN' button visible so last checkbox is further from bottom of screen (for touch activation).
'RTN' button is disabled until checklist complete.

* Add checkbox class constructor for preflight checks.

* Fix checkbox size.

---------

Co-authored-by: Piotr Rzeszut <piotrrze@gmail.com>
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: philmoz <philmoz@users.noreply.github.com>
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-08-29 19:18:39 +10:00
MichaelandGitHub 2d8d2fcf01 feat: MIN constant as a source option (#3639)
* feature request #1635

- added MIN (-MAX -> -1024) as source

* fix rebase

* fix rebase

* change to use language strings for MIN/MAX instead of instance

updated CN and TX language file for MINuse -RESX for MIN instead of magi numbercode cleanup

* updated test sources

* updated JP language

* JP language: changed translation text

* updated HE language translations
2023-08-28 20:16:00 +10:00
3djcandGitHub 78aa381464 fix(radio): YAML timer handling (#3949)
* fix: YAML timer handling

* chore: improve YAML set timer handling

* chore: improve timer handling

* feat: only offer defined timer for set and reset functions

* feat: only offer defined timer for set and reset functions (bw)

* chore: cosmetics
2023-08-28 20:02:03 +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
RistoandGitHub 0d361b3131 fix: cosmetics, uniform labelling of build options. 2023-08-27 12:06:36 +02: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
MichaelandGitHub c2bebfbbd3 fix: Plurals and indefinite articles in German TTS, plus (#3920)
- fixed no LUA constant for unit dbm
- fixed use plurals and indefinite articles in German TTS
2023-08-26 21:09:41 +10:00
Ulf HedlundandGitHub c66da428be fix: Corrections to SE translations (#3954)
* Corrections for model MPM settings

Some corrections for model MPM settings

* Added a few new translations
2023-08-26 20:54:09 +10:00
philmozandGitHub c1e83c2026 fix(color): Buttons on model setup page not showing active state (#3942) 2023-08-26 20:52:32 +10:00
Preston GuilloryandGitHub d8cfa671e5 fix(lua): Include scale in getInput and insertInput (#3772)
* Include scale in getInput and insertInput

When using telemetry as an input, the scale field is used to convert from a
value with units (like volts or meters) to a percentage. I'd like to modify an
input's scale via Lua script. However this field does not seem to be supported
by the Lua API. This seems like an oversight, so I added it.

* chore: Add scale luadoc
2023-08-26 19:52:22 +10:00
4f20672799 Fix the problem of V0 receiver setting ibus and sbus (#3940)
Co-authored-by: Xy201207 <yaoxu@flysky.com>
2023-08-24 10:22:13 +08:00
RistoandGitHub 4b90e8b001 feat(color): Updated to new Eddie the Edgehog splash (#3852)
* feat(logo): updated 480x272 pixel screen splash to use new EdgeTX logo & mascot
2023-08-20 11:44:57 +02:00
3djcandGitHub 1177891750 fix: simu sd detection (#3936) 2023-08-15 10:19:21 +10:00
3djcandPeter Feerick d2c2fd6426 fix: EM when LUA script is running and radio is turned off (#3926)
* fix: EM when LUA script is running and radio is turned off

* Improve sequencing
2023-08-15 10:18:01 +10:00
3djcandGitHub 58ee2f282d fix: Add missing RTN keys to some simu (#3933) 2023-08-14 12:31:33 +10:00
3djcandGitHub c2d8291e49 feat: Add support for RadioMaster Pocket (#3892)
* RM Pocket support

* Further Pocket changes

* Production readiness

* chore: Consistent formatting

* chore: `ENABLE_SERIAL_PASSTHROUGH` enables `CLI`

* chore: Add to Buddy

* fix: merge wtf
2023-08-14 12:10:22 +10:00
Malte LangermannandGitHub b377a8b5d4 chore: SDIO conversion to HAL (#3182) 2023-08-13 18:56:39 +02:00
3djcandGitHub 3342d21195 feat: improved OLED brightness handling (#3773) 2023-08-12 11:17:50 +02:00
3djcandGitHub f1968f9857 fix: QX7 PCBREV detection (#3922)
Summary of changes:
- PCBREV detection for X7 was disabled as part of early 2.10 work
- It leads to SPORT port not been available on X7
- Once enable, option is back, tested flashing a receiver ok
2023-08-10 15:48:37 +02:00
raphaelcoeffic c089777bd0 fix(boxer): module size 2023-08-10 15:46:21 +02:00
3djcandGitHub ae8e1fff8a fix: Trainer jack initialisation and driver cleanup (#3811) 2023-08-09 21:08:42 +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
3djcandGitHub f2aade0635 fix: logs not matching user stick mode (#3916) 2023-08-08 17:58:03 +10:00
Raphael CoefficandGitHub e99980f1bf fix(x12s): init periph clocks in ads79xx driver (#3810) 2023-08-08 10:07:07 +10:00
Raphael CoefficandGitHub 017ac82d59 fix: race condition on mixer task handle (#3914)
PR #3451 moved the start of the mixer task to a point in time where the task scheduler is already started (UI task). Before that change, the mixer task would be created before and effectively started after the task scheduler started.

This introduces a race condition on `mixerTaskId.rtos_handle`, as the mixer scheduler might trigger before `xTaskCreateStatic()` returns and the task handle is assigned.

This PR fixes the issue by delaying the start of the mixer scheduler until `xTaskCreateStatic()` returned and the task handler has been properly assigned.
2023-08-07 13:34:38 +02: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
Peter FeerickandGitHub f110bda8e3 fix(AFHDS3): Typo from #3793 2023-08-04 16:14:20 +10:00
richardclliandGitHub c2c9c5a757 fix: Some AFHDS2A/AFHDS3 GPS/ALT telemetry handling issues (#3582)
* Fix widgets vs. sensors (TX16s/FS-IA6B FW2.8.3) and updated meaningful units.

* Updated the GPS sensors to degree unit.

* Fixed a bug in AFHDS2 Alt decoding.

* Fixed a typo.

* Update GPS sensors format.

* Change Long/Lat unit to RAW.
2023-08-04 15:30:10 +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
Raphael CoefficandGitHub c0df9e9c44 fix: only SHIFT should not trigger repeated events (#3896)
When pressed continously
2023-08-03 20:49:20 +10:00
77ada79b8d chore(translation): Update FR (#3816)
* Update fr.h

* feat: FR translation

---------

Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
2023-08-03 20:48:46 +10:00
3djcandGitHub 490fb951f8 fix: Do not display 0 Err when when info is unavailable (#3890)
* fix: unsuported %zu in arm compiler

* fix: do not display 0 Err when when info is unavailable
2023-08-03 14:41:13 +10:00
c6503a77c7 fix(AFHDS3): iBus IN and Failsafe settings not updating (#3793)
* Fixed failsafe function and sync output of V0 version

* Make the code more readable.

Co-authored-by: Xy201207 <yaoxu@flysky.com>
2023-08-03 14:15:51 +10:00
zyrenandGitHub 79461226a1 fix(tx16): Reduce likehood of TX16s seeming being unresponsive on startup (#3655)
Reduce the number of retries of SD_MAX_VOLT_TRIAL to solve the problem that the card owner cannot enter the system during the boot process of TX16S.
2023-08-03 12:43:47 +10:00
3djcandGitHub f68d21935f fix: FR translation for timer mode (#3879) 2023-07-31 11:24:36 +10:00
3djcandGitHub 159db764e0 fix(bw): Remaining/elapsed display on BW telem topbar (#3871) 2023-07-31 11:21:57 +10:00
richardclliandGitHub ad05ff9fa3 feat: Flysky gimbal support for T20 (#3854) 2023-07-31 10:17:20 +10:00
philmozandGitHub c2ced5a04f chore: Remove duplicate TR_SF_TEST entries from translation files (#3884) 2023-07-31 10:06:07 +10:00
Raphael CoefficandGitHub 1912697616 fix: Throttle invert and gimbal dead zone (#3864) 2023-07-30 21:37:21 +10:00
raphaelcoeffic 032d581821 fix: scan all keys 2023-07-30 07:37:11 +02:00