Commit Graph
4427 Commits
Author SHA1 Message Date
3djcandGitHub 285de8a08e fix: SPORT power handling UI on supported B&W radios (#3636) 2023-06-15 10:07:07 +10:00
68061346fa chore: Translation catchup (#3619)
* chore: `DE` Enabled features translation

* chore: Qt Linguist updater, skip SE due to #3456

Updating 'companion/src/translations/companion_pt.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 1 translation(s)
    Same-text heuristic provided 5 translation(s)

Updating 'companion/src/translations/companion_zh_TW.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 27 translation(s)

Updating 'companion/src/translations/companion_pl.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 32 translation(s)

Updating 'companion/src/translations/companion_ru.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 2 translation(s)
    Same-text heuristic provided 42 translation(s)

Updating 'companion/src/translations/companion_de.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 36 translation(s)

Updating 'companion/src/translations/companion_nl.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_da.ts'...
    Found 2960 source text(s) (36 new and 2924 already existing)
    Removed 13 obsolete entries
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_sv.ts'...
    Found 2960 source text(s) (46 new and 2914 already existing)
    Removed 18 obsolete entries
    Number heuristic provided 1 translation(s)
    Same-text heuristic provided 24 translation(s)

Updating 'companion/src/translations/companion_cs.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_fi.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_he.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_zh_CN.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 20 translation(s)

Updating 'companion/src/translations/companion_ja.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 25 translation(s)

Updating 'companion/src/translations/companion_es.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 22 translation(s)

Updating 'companion/src/translations/companion_en.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_fr.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 19 translation(s)

Updating 'companion/src/translations/companion_it.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 21 translation(s)

* IT and DE updates

* Translation catchup (Swedish) (#3626)

* Translation catchup #3619

* Translation catchup #3619

* Additional translations for #3619

* Minor changes for PR #3619

* fix: Change back to TR_ENABLED_FEATURES

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>

* FR Translations

* CZ Translations

* DE and IT updates

* Update IT

* PL Updates

* PL update

* Hebrew translations (#3638)

* translation-catchup HE

* TR_SHOW_INSTANCE_ID translation from Offer

* CN/TW translations

* Update JP

* Update CN/TW

* Update DA
2023-06-09 10:43:23 +10:00
Peter FeerickandGitHub 687345192b fix(color): Create THEMES dir if missing (#3647) 2023-06-08 11:35:16 +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
MichaelandGitHub e25c6d8a99 fix(ui): Auto adjust PPM frame length if greater than 8 ch (#3622)
* Auto-adjusts PPM frame length if channel count is greater than 8 channels

* added auto adjust for PPM trainer mode on b&w targets

* code cleanup
2023-05-31 13:29:17 +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
MichaelandGitHub 8893db2726 fix: MPM protocol options missing for some protocols (#3504)
* fixes #2713

changes:
- use getMultiOptionTitle() instead of rfproto->getOptionStr() as getMultiOptionTitle() takes updated MPM status in account

* code cleanup: removed obsolete functions

* fix #3046

* fixed my complete misunderstanding of how the chosen protocol is updated in Multi DSM auto mode

* removed obsolete check

* update subType list only on rf protocol change

added some comments

* reconsidered implementation utilizing  LV_EVENT_REFRESH to avoid sporadic loss of update

* editorial change

* fix problem where a successful MPM DSM2 auto bind would reset the receiver ID

* reset DSM2autoUpdated just in case
2023-05-23 10:05:12 +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
MichaelandGitHub 04359757c4 fix: Update built-in Multi-protocol module protocol lists, single source for firmware and cpn (#3435)
* - Concentrated Multi protocol definitions into a consistent single source. Actually two .h files, one for the protocol list and names, the other for subtypes and capababilites, see comments in .h files as to why

- updated available protocols reflecting 1.3.3.20 (15+ protocols)
- fixed Companion always showing f/s and channel map options in model setup disregarding the protocol capability

* Following @pfeerick's review: changed heaeders and typos

fixed Ubuntu runtime error on assert
fixed change of Multi protocol not triggering writing yaml file

* corrected copy/paste error

* fixed FrSky index juggling

* Updated Multiprotocol database to current MPM project status (ref. MPM Multiprotos.ino)

- changed protocol name FX816 to FX
- added Flysky AFHDS2A options PPM and PPWM SBUS 16ch subtypes "PWM,SB16" and  "PPM,SB16
- added V761 option to select TOPRC
- added FX options "816" and "620"
- added FRSKYR9 option "-- 8ch"

* MPM protocol scan excludes some protocols which are not meant to be selected. For Companion and Simualtor (and for radios if there is no MPM connected) this was handled in different places with outdated information. Harmonized and centralized the handling of non-selectabale protocols into the single source for all companion, Simulator and all gui types.

* More cleanup:

- changed some MPM protocol names to the ones the MPM delivers with MPM protocol scan to harmonize names between CPN/Simulator/radio
- added XN2927DUMP and MOULDKG to the list of excluded MPM protocols just like the MPM does with MPM protocol scan
- added new option value limits and moved definitions to single source
- adapted CPN and radio to use common definitions of option values for all GUI types
- moved distributed MPM (as far as possible) to one coherent place under a single #if defined (MULTIMODULE)
- fixed option value not reset at change of protocol
- some editorial stuff

Note: There is still some work to be done on CPN GUI option values. DSM2 servo rates are hard coded, BAYANG telemetry options are only shown by index and not by text as in radio code, AFHDS2A servo update rate is shown as index too which is to no use for users.

I'll try to fix all this in the next session, but request to get rid of BAYANG telemetry options translations. It is much easier to define a common string list by using untranslated.h

* rebase due to fr.h

* resolve merge conflict with main fr.h

* more cleanup:

- deleted multiple definition of MM_RF_CUSTOM_SELECTED in favor of single source define
- bw radios: change to only allow defined protocols rather than a fixed 127 protocols

* Changes:

- magic sentinel number 0xfe as define
- add 10 NN protocol entries for future use of new MPM protocols not yet defined in ETX (still recommend timely ETX maintenance update if MPM releases new firmware)

* Changes by @elecpower:

- align field labels to radio
- change servo update frequency from combo box to spin box with edit only via up/down arrows to stop invalid values being entered via keyboard. Remove frequency list used to populate combo box as only used by Companion.
- add validation to module yaml decode checking for unsupported multi protocols and/or multi protocol sub types and if unsupported set module to OFF just to be safe.

* Changes:

- radio: added validation to module yaml decode checking for unsupported multi protocols and/or multi protocol sub types and if unsupported set module to OFF just to be safe.

* CPN: use sentinel define

* cpn: Sort multi protocols list (courtesy @elecpower)

* fixes #3480

changes:
- moved FrSky subtype defines to MultiProtoDefs.h
- updated bind_button_driver.cpp

* missed replacing one instance of setMultiProtocol()

* changes:

- editorial change
- added multi option to OMP protocol (ref #2713)

* rather go for STR_MULTI_RFTUNE because MPM manual talks about RF tune

* made XN297_DUMP selectable (available with MPM debug fw only)

* corrected merge mistakes
2023-05-22 20:07:29 +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
MichaelandGitHub fd7d359695 fix: RX stat labelling dependent on telemetry protocol (#3523)
* RX stat (formerly known as "RSSI") labeling dependent on protocol (RSSI/dbm, Rqly/%, Sgnl/-)  used for range check, multi rf tuning and low/critical warning settings pages

* chore: Bump libopenui

* removed define that was supposed to be for testing only

function getRxStatLabels(): wasting flash as inline, no need to be inlined

* removed inline on getRxStatLabels() - step 2
2023-05-17 11:17:35 +10:00
MichaelandGitHub 5db37e2a2b feat: Support for ext. Multiplex MLink JR type module (#3352)
* introducing external MLink module telemetry as module PPM subtype

* implemented fix for sensor discovery display not showing all detected sensors (is in separate PR too)

implemented PPM subtypes in Companion

* add PPM subtype to model printer

finalize subtypes for PPM in Companion

* added logic to try to use HW UART with inverters turned off first (e.g. NV14), then, if not successfull use soft serial inverted (== uninverted data due to HW inverters on PCB)

changed start bit detection IRQ priority from 5 to the previous 0 (also in separate PR)

* extended telemetry timeout to 2s due to slow Mlink RSSI update rate

* changed the "NOTLM" sub-type texts to:

- "No Telem" for 128x64 (this is the max numbers of characters it can take)
- "No Telemetry" everything else including Companion

* Companion:

- lower case 1st charachter on PpmSubTypeStrings to ppmSubTypeStrings
- added telemetry hooks for ppmSubTypeStrings stringx

* simplified serial port initialization for MLink telemetry

* editorial change: corrected obsolete comment
2023-05-16 11:22:47 +10:00
ulfhedlundandGitHub e603581105 chore: Translation of "Range Test" (#3584)
* Translation for range test

* Translation for range test

* Translation for range test

* Reviewed translations for 9 languages

Reviewed translations for 9 of 11 actively translated languages

* Translations for Chinese and Taiwanese
2023-05-14 16:28:27 +10:00
Stav RavivandGitHub dd64aaef2e feat: Hebrew radio translation 🇮🇱 (#3506)
* Hebrew radio translation 🇮🇱

* chore: loop in alphabetical order

* Replace Arial with Arimo

* Add "he" to companion settings
2023-05-14 13:36:53 +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
philmozandGitHub 93d8992fed fix(color): Incorrect Lua memory usage values (#3548) 2023-05-07 11:24:58 +10:00
philmozandGitHub ee6563e33f fix(color): GV update header if unit is changed, keep FM values in range (#3563)
Update title if unit is changed.
Update FM values if outside min/max range for GV.
2023-05-06 10:02:51 +10:00
Peter Feerick ecba2f6016 fix(color): Joystick page header title 2023-05-05 19:31:58 +10:00
philmozandGitHub 07e2e06baf fix: Update GV value in header when precision changes (#3544) 2023-05-05 19:25:30 +10:00
3djcandGitHub f5c1a93f87 fix: Formatting the SD card on radio when running is a bad idea (#3549)
Plus we need the flash memory space for some targets!
2023-05-02 09:30:27 +10:00
philmozandGitHub 909fb020ba fix(color): '!1x' repeat option missing (#3520) 2023-04-24 16:49:51 +10:00
Peter Feerick cf01c2b441 Revert "fix(color): Scroll order for 'FlySky' module options (#3479)"
This reverts commit 54e0d350e8.
2023-04-19 11:40:45 +10:00
philmozandGitHub 54e0d350e8 fix(color): Scroll order for 'FlySky' module options (#3479)
* Fix scroll order for module options when 'FlySky' module type selected.
Fix simulator crash issues related to FlySky module.

* Fix more simulator crashes
2023-04-18 11:01:26 +10:00
philmozandGitHub 6985d3f24b feat(color,cpn): Updates to the model telemetry page, sensor ID consistency (#3401)
* Add 'Show Instance ID' button to telemetry page to show/hide sensor instance number (default is hidden).
Fix issues with page refresh when all sensors deleted.
Select closest sensor when a single sensor is deleted.
On change, only refresh the sensor list instead of the whole page.
The 'showInstanceIds' property is saved to the model file.
Update Companion to save/load 'showInstanceIds' in model YAML file. Add checkbox to telemetry edit page.

* Update all radio specific files.

* Keep focus on 'Discover/Stop' button when searching for new sensors.
Start sensor ID index at 1 to match B&W radios.
Keep focus on changed parameter when editing sensor, don't rebuild entire parameter list on change.

* Display actual 'instance' ID instead of 'instance' + 1.

* Fix incorrect ID when reloading simulator data.

* Fix incorrect ID when reloading simulator data on B&W radios.
2023-04-17 18:44:44 +10:00
philmozandGitHub e0fad3d122 fix(color): Popup telemetry warning can crash radio (#3439)
Also fixes issue where simulator does not close cleanly if popup showing.
2023-04-16 18:25:29 +10:00
philmozandGitHub 5b0e47ff42 fix(color): Rework rotary encoder acceleration calculation, fix getRotEntSpeed not working (#3441)
* Rework the rotary encoder acceleration calculation, and remove double handling of acceleration.

* Reduce the acceleration sensitivity.

* Set the 'rotencSpeed' variable for the Lua getRotEntSpeed function().
2023-04-16 16:54:46 +10:00
philmozandGitHub 7f5ea004e4 feat(color): Sort the widget list by display name (#3476) 2023-04-15 19:14:44 +10:00
philmozandGitHub e03add0b86 fix(color): Memory leak when disconnecting USB in SD card mode (#3453) 2023-04-15 18:41:35 +10:00
richardclliandGitHub 01829a12d2 fix(color): Default splash screen that fits NV14/EL18 screens (#2764) 2023-04-14 19:46:21 +10:00
Peter Feerick a741c11c32 chore(afhds3): UI cosmetics
Missed a spot ;)
2023-04-13 21:30:35 +10:00
Peter Feerick ddf6222d6b chore(afhds3): UI cosmetics and formatting
Post #3443 cleanup
2023-04-13 20:40:58 +10:00
Xy2019andGitHub 02e804f55c fix(afhds3): Unable to set SBUS, IBUS display issue, indiv channel PWM freq (#3443)
* Fix the BUG of V0 receiver setting IBUS SBUS; add the setting item of INRM301.

* Fix check failure; remove some unused characters.

* Fix typos and rename variables as well as fix compilation errors.

* add language
2023-04-13 19:36:43 +10:00
Peter Feerick d09fbc3ee1 fix(color): MPM protocol not always sav to storage
In the unlikely occurance you *only* choose a
protcol and turn off the transmitter, it won't be
saved!
2023-04-13 14:56:36 +10:00
philmozandGitHub 4315217f65 fix(color): Custom failsafe settings not always to storage (#3463) 2023-04-13 14:49:21 +10:00
Peter FeerickandGitHub 5a18647cd4 fix(X9lite): Chan. monitor, other display glitches (#3452)
It seems the display used on these TX doesn't
like too many horizontal lines.
2023-04-13 14:40:57 +10:00
philmozandGitHub 0754830aed fix(bw): Fix crash when editing ext. multi module type on 212x64 radios (#3459) 2023-04-11 14:39:08 +10:00
f935ce8c2b feat(color): Add layout 4+2B right side 3QRT+1QRT (#3315)
* Add layout 4+2B right side 3QRT+1QRT

* Fix Layout 4+2B LayoutId, length max 9 char

* Maybe this will work?

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-04-10 12:00:59 +10:00
philmozandGitHub 227780d784 feat: Add 'repeat' option to 'Lua Script' special function (#3338)
* Add support for the '1x' repeat option for 'Play Script' special functions.

* Add Companion and B&W radio support.

* Fix B&W radio logic and layout.

* Add translation hooks.
2023-04-10 11:00:50 +10:00
philmozandGitHub 26f166011c fix(color): Active widget popup menu causing issues with radio menus (#3417) 2023-04-09 13:50:25 +10:00
philmozandGitHub 92651429a2 feat(color): Use generic YAML parser to save/load Theme yaml files (#3346)
* Change ThemeFile class to use generic YAML parser instead of hard wired code.
Fix handling of empty input lines in YAML parser.
Increase size of YAML parser variables to handle theme 'info' property length.

* Update comment.

* Fix error.

* Proper fix for blank lines in YAML file.

* Fix YAML blank line handling (attempt 3).

* Ensure theme YAML file is backward compatible.

* Store selected theme in radio settings instead of selectedtheme.txt file.
On start, if radio settings theme is empty, try and load from selectedtheme.txt file.
In Companion, save/load the selected theme in the radio settings YAML file; but no UI to select theme.

* Update selected theme name in radio.yml if the theme name was edited.

* Only save 'selectedTheme' in Companion on color LCD radios.
2023-04-09 13:32:30 +10:00
MichaelandGitHub 50b492df94 fix: Incorrect subprotocol count causing simulator crash, garbage entry (#3426) 2023-04-03 12:37:06 +10:00
philmozandGitHub af02340b87 fix(color): Adjust portrait layout for debug view (#3422) 2023-04-01 18:49:43 +10:00
1f82724a95 feat(color): Better debug names on statistics page (#3245)
* better_debug_name_on_statistics_page

* chore: Translations for Lua related strings

* chore: More translation strings for stats screen

* chore: Padding for STR_MS, STR_BYTES

---------
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-03-30 12:12:45 +10:00
philmozandGitHub ebef94d993 feat(color): More compact Flight Mode list and edit views (#3344)
* Flight mode list and edit changes:
- Update trim ranges in Companion to match radio.
- Move trims setup to main edit view instead of dialog popup.
- Show/edit current trim value for each trim (if enabled)

* Show flight mode list view like logical switches.

* Update FM trim values in edit window if trim is changed (via trim switch).

* Use styles for layout

* Remove grid layouts - use flex flow as it is faster.

* Speed up page build time.
Reduces build time on TX16S Mk2 from ~320ms to ~25ms.

* Fix touch screen events.
2023-03-27 11:43:44 +10:00
5622cb9c5c chore(color): Replace StaticText with LVGL labels on GVARS page (#3310)
* chore(ui): speedup gvars page

* Replace StaticText with LVGL labels.

* Further performance improvements.

* Remove diagnostics.

* Fix portrait layout.

* Refactor style to a separate class and use CHECKED state to control color of selected flight mode.

* Remove duplicate lines.

* User LVGL state and style for GV value font size selection.
Reduce the number of times the style_refresh state is changed.

* Center align name without needing hard wired offsets.

* Speed up page build time.

* chore: Bump libopenui
gagarinlg chore(ui): improve static text and window base speed (#88)

---------

Co-authored-by: gagarinlg <malte@langermann.net>
2023-03-26 19:10:56 +10:00
philmozandGitHub 4f5061438f fix(color): Some radio settings properties not triggering update of radio.yml (#3404) 2023-03-26 18:15:29 +10:00
Raphael CoefficandGitHub cb43cf75b9 fix: Flashing internal ISRM and via S.PORT connector (#3374)
* fix: re-enabled flashing via S.PORT connector

* fix: remove check for productId on internal module
2023-03-26 11:30:01 +10:00