Commit Graph
19727 Commits
Author SHA1 Message Date
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
Raphael CoefficandGitHub ce03cbf651 fix: yaml generator for clang 15 and up (#4076)
* fix(yaml): use find_clang as for datacopy

* fix: use library path provided by clang python package first

* fix: anonymous structs and unions

* fix: typedefd struct attributes
2023-09-21 15:17:42 +02: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
Peter Feerick cd88057d02 chore(radio): Cleanup from #3753 & #3639 2023-09-21 19:41:42 +10:00
philmozandGitHub 0aff002c8a chore(color): Cleanup and optimise EdgeTxTheme class (#4013) 2023-09-21 19:39:05 +10:00
Raphael CoefficandGitHub 4d148e5c0c fix(radio): Use SWRC_NONE if switch cannot be found (#4005) 2023-09-21 19:25:46 +10:00
philmozandGitHub 661de78464 chore: Reduce AFHDS3 console noise when running simulator (#4075) 2023-09-21 18:54:50 +10:00
Raphael CoefficandGitHub 99f4e4816b fix: iXJT firmware update (#4068) 2023-09-20 05:48:04 +02: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
Raphael CoefficandPeter Feerick c758e80cb8 fix: T18 has no power switch on AUX2 (#4035) 2023-09-20 11:13:39 +10:00
MichaelandGitHub d30499f19b feat: Add SF to mute audio amplifier on supported radios (#3753)
* SF Audio amplifier mute port to 2.10

* added missing definition STR_SF_DISABLE_AUDIO_AMP

* exclude radios not able to switch audio amp off

* radio/src/storage/yaml/yaml_datastructs_128x64.cpp needs to distinguish between radios with or without switchable audio amps. Expample Zorro vs X9lites

* updated companion and radio language PL

* - added Companion and radio language SE

- removed type unfinished for translated languages

* added radio and companion language JP

* - reverted change to 128x64 yaml_datastructs.h

- moved exclusion of SF DISABLE_AUDIO_AMP based on hw capabilities to UI level

* confused FUNC_ with FUNCTION_

* confused FUNCTION_* with FUNC_*
2023-09-14 19:33:03 +10:00
Frank ZhaoandGitHub 16276d3d15 fix: Compilation error when X9D and USE_RTC_CLOCK=OFF (#4040) 2023-09-14 19:27:08 +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
Neil HorneandGitHub fec64a964d fix(cpn): Selection of sound packs in update process (#3848)
* chore(cpn): increase github REST api page size for sound packs

* chore(cpn): add selection mode parameter to chooser dialog

* chore(cpn): remove cli debug messages when progress dialog available

* chore(cpn): carve out filterAssets from setFilteredAssets and call new function

* fix(cpn): refactor update sounds asset filtering

* chore(cpn): move code block

* fix(cpn): remove trailing hyphen from default sounds asset filter
2023-09-07 21:23:02 +10:00
MichaelandGitHub 73a4a2387e chore: Remove legacy UI for telemetry type (#3782)
* CPN and radio: removed legacy UI for telemetry type

* CPN and radio: removed legacy UI for telemetry type
2023-09-07 21:10:16 +10:00
philmozandGitHub e485db93ca feat(radio): Delay warnings until after splash screen finished (#3887) 2023-09-07 20:33:55 +10:00
c4f1e7127d chores(flysky): Separate AFHDS2A and AFHDS3 into 2 different module type (#3783)
* chores(flysky): separate AFHDS2A and AFHDS3 into 2 different module type

This should allow to remove some of the hacks added earlier.

* chore: Add some EL18 CI bits

* fix(afhds): cmake defs

* fix(ci): add el18 to commit-tests.sh

* chore(cpn): separate AFHDS2A and AFHDS3

* chore(cpn): remove binary import of afhds and legacy fxFreq field for afhds3

* fix(cpn): limit available internal afhds protocols to those supported by hardware

* chore(cpn): update Flysky int module test

* fix(cpn): compile error

* fix(cpn): afhds2a max channels

* fix: TR_MODULE_PROTOCOLS

* enh(cpn): more support for afhds2a and 3

* fix(cpn): rebase compile error

* fix(cpn): bit indexes

* fix(cpn): emi toString

* fix(cpn): limit available internal afhds protocols to those supported by hardware

* enh(cpn): add support for Flysky EL18

* fix(cpn): available protocols

* fix(cpn): rebase moduledata

* chore(cpn): add module fields to model print

* Separate AFHDS2A and AFHDS3 UI settings.

* Fix AFHDS3 conversion from old subtype value.
Fix 'Channel Range' layout on portrait LCD.

* Fix name.

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-09-07 19:24:03 +10:00
HThurenandGitHub 9515d29c9d chore(translation): Updates to Danish translations (#4020) 2023-09-07 16:09:46 +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
Neil HorneandGitHub d3ed7c12e6 feat(cpn): Play radio-generated audio in global/special function editor (#3910)
* enh(cpn): play sounds in model functions editor

* add recorded radio sounds
2023-09-04 19:52:12 +10:00
Neil HorneandGitHub 8d8a50ce74 feat(cpn): Trainer modes more closely mimic firmware (#3981) 2023-09-04 19:46:33 +10:00
philmozandGitHub f55f9c4316 chore(color): Remove unused color bitmap images (#4001) 2023-09-04 18:59:52 +10:00
Neil HorneandGitHub 5ce41bd91e fix(cpn): Custom fumction filename length (#3930) 2023-09-04 14:11:20 +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
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
Neil HorneandGitHub cb08a4de25 feat(cpn): Only show active channels in source lists (#3971) 2023-09-02 18:45:29 +10:00
Neil HorneandGitHub 71b0614503 feat(cpn): Identify new and changed models by italicising row (#3840)
* enh(cpn): identify new and changed models by italicising row

* enh(cpn): identify drag n drop and new from template as changed
2023-09-02 18:37:27 +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
Neil HorneandGitHub ceba62650e fix(cpn): Application crash when editing radio settings (#3978) 2023-08-29 18:42:31 +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
Neil HorneandGitHub e46d00e7d0 fix(cpn): Only timers with active modes should be included in lists (#3956)
* disable timers with mode OFF

* fix isModeOff to reference mode not switch

* update model edit source lists when timer mode changed

* add timer mode test to reset function

* add timer mode test for Set and Reset functions

* change yaml special source TIMERx to Tmrx
2023-08-28 20:02:54 +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
019b4308ac fix(cpn): DE and PL translation regressions (#3968)
* fix(cpn): de translation

* fix(cpn): PL translation

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-08-26 20:32:40 +10:00
Neil HorneandGitHub 64f4968e89 fix(cpn): Model and labels lists sync (#3967)
* labels use proxy model mapping to source

* cosmetics

* Fix model list focus

* fix model focus on change to labels
2023-08-26 20:06:10 +10:00
543171884a chore(cpn): Update branding (#3817)
* chore(cpn): change logo source url

* chore(cpn): replace image files

* chore(cpn): use mhotar images

* chore: Generate icons

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-08-26 19:53:11 +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