Commit Graph
3752 Commits
Author SHA1 Message Date
philmozandGitHub fdf92b106e fix(cpn): Handling of 'Edge' logical switch V2/V3 parameters (#3322)
- Fix maximum allowed value for V3
- Update V3 displayed value when V2 changes.
2023-03-26 13:05:55 +10:00
ulfhedlundandGitHub 1aa28a6295 chore: Swedish Companion and radio translation updates (#3397) 2023-03-24 11:08:57 +10:00
philmozandGitHub 623704f8b7 fix(cpn): Throttle initialisation after #3111 (#3394) 2023-03-23 11:40:35 +10:00
MichaelandGitHub a7688e2b04 fix(colorlcd): ACCESS receivers being lost after sync with Companion (#3355)
* fixes https://github.com/EdgeTX/edgetx/issues/3273

* empty commit to trigger checks

* Companion: moved yaml tag receivers correction to yaml parserCompanion and radio: updated comments
2023-03-23 10:45:24 +10:00
HThurenandGitHub c391003525 chore(cpn): Danish translation updates (#3379)
* Companion update

* Update companion_da.ts

restore da_DA
2023-03-22 11:51:38 +10:00
661657feca feat: New advanced joystick mode on radio, improvements to Companion and Simulator joystick support (#3111)
* Allow switches on the connected radio to control switches in the simulator via the joystick interface.

* Merge configurable radio joystick interface from banyaszg.

* Add two more 'axis' channels to companion.

* Fix 6POS from USB joystick to simulator.

* Reduce data size.

* Fix build error on B&W radios.

* Add 'Companion' button mode to work with the button logic in the Companion app.

* Build Companion joystick setup layout at runtime.
Change #define names for simulator joystick.
Allow 15 axes and 32 buttons.
Initial support for trim sliders.

* Remove custom joystick button type for companion - use 3 buttons per switch in companion to control simulator switch state.

* Fix joystick constructor calls parameters. Connect some radio joystick trims to simulator widgets.

* Restore 'companion' button type to reduce number of buttons needed. Make trims work via buttons in USB joystick.

* Connect joystick trim buttons to simulator widgets.

* Use companion source names for trims.

* Add encode / decode of usb joystick custom settings to Companion.

* Convert to lvgl layouts.
Update language files.

* Fix generated YAML storage files.

* Fix initialisation error when editing button channel. Cleanup code.

* Fix rebase.

* Fix refresh of joystick channel list view after editing an entry.
Companion joystick config window uses two columns.

* Fix vertical joystick inversion bug.
Change stick axis labels.

---------

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-03-22 10:31:29 +10:00
Neil HorneandGitHub a1178f83a6 chore(cpn): Refactor component updates (#3218)
* Refactoring

* Fix current release id and process dlg events

* enh: Process updates dialog add select/deselect all components

* Change Expression to Pattern
2023-03-19 16:13:56 +10:00
philmozandGitHub 9a898533d1 fix(cpn): QoL tweaks to joystick preferences (#3105)
* Add preference option to Companion to disable the 'Cannot open joystick, joystick disabled' popup warning when starting the simulator.

* Don't erase joystick settings if user opens preferences dialog while joystick is not connected.
Remove reference to "Ubuntu" font family for 'Radio Type' label in preferences dialog (generates warning on MacOS).
2023-03-17 12:09:38 +10:00
816a823727 feat: Add support for Japanese voice language 🇯🇵 (#3261)
* Created tts_jp.cpp and added "TR_VOICE_JAPANESE" to the *.h file.

* Commented out once because the build did not work

* fix: Define `JP` as a TTS language,
- Fixes the undefined reference to `jpLanguagePack` error
- put things in alphabetical order as the comment suggests it should be

* chore: Add `JP` to Companion voice language list

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-03-16 21:33:58 +10:00
Neil HorneandGitHub ddf5fdd906 fix(cpn): Add GVARs to input sources (#3097)
* fix(cpn): Add gvars to input sources for colorlcd ONLY

* Fix GVs available on all radios

* Move GVs in source list from after telemetry to before
2023-03-16 17:57:34 +10:00
312a2358dc feat(color): Increase max possible widget screens to 10 (#3073)
* Elevate telemetry screen count from 5 to 10 on color radios.

* Cpn increase max custom screens

* fix(color): Missing Add tab button on max-1
addTab was not called when adding screens dynamically

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-03-16 17:13:11 +10:00
philmozandGitHub 6e427615dd fix(cpn): Handling of the 'show splash' setting for B&W radios in Companion (#3336)
* Fix handling of the 'show splash' setting for B&W radios in Companion.

* Remove 'TODO' comment.
2023-03-13 11:05:12 +10:00
HThurenandGitHub 9c39b08b7e chore: Update Danish translation in Companion 🇩🇰 (#3308)
* Update danish translation i Companion

* Update companion_da.ts

Restore da_DA
2023-03-07 11:15:28 +10:00
Neil HorneandGitHub 9fa9a1f100 fix(cpn): Model print global and special functions (#3075)
* fix(cpn): Model print global and special functions

* fix(cpn): Model print sf/gf adjust gvar abbreviate further

* fix(cpn): Model print gf/sf move to table format

* fix(cpn): Model print gf housekeeping
2023-03-05 20:15:52 +10:00
c84abbf739 chore(cpn): Allow configuring AUX serial port as "External module" (#2854)
* Add external module to hardware settings

* Use serial port aux1 rather than radio profile externalaccessmod
Move module conversion function from OpenTxFirmare to ModuleData

* Remove externalaccessmod from radio profile options

* Unnecessary CMake option HARDWARE_EXTERNAL_ACCESS_MOD removed.

---------

Co-authored-by: rotorman <risto.koiva@web.de>
2023-03-05 19:12:32 +10:00
philmozandGitHub b8220e5be4 feat(color): Generate layout icon bitmap at runtime to account for screen orientation (#3282)
* Simplify layouts code, use data driven layout definition.
Generate icon bitmap at runtime to account for screen orientation.
Move old layout png images to companion folder (still used in companion).

* Align buffer for bitmap.

* Use 'free' instead 'delete' for bitmap buffer to avoid failed build test.
2023-03-05 11:36:56 +10:00
Neil HorneandGitHub 8ee0336b5e fix(cpn): Align Internal/External antenna parameters with radio (#3050)
* fix(cpn): internal module antenna parameters

* Add xjt filter to model settings antenna
2023-02-27 16:23:13 +10:00
philmozandGitHub 4ea77ee749 feat(cpn): Show splash screen after main window - resolves delay and position save issues on MacOS (#3210)
- Don't create splash objects unless needed
- Show main window before showing splash (fixes MacOS issues)
- Delay showing splash until app.exec() started (fixes MacOS issues)
2023-02-24 18:58:21 +10:00
Malte LangermannandGitHub 8d91c0ae95 chore: Convert simu/simulator/companion to SDL2 (#3085)
* chore(pc): convert simu/simulator/companion to use SDL2

* switch companion builds to SDL2 - OSX is not converted
the linux change is done a bit hacky, it should be done by updating the EdgeTX docker container

* update build system setup scripts

* add compatibility for old and new SDL2 cmake integration

* fix windows installer

* fix simulator audio on windows by using DirectSound vie SDL2

* fix windows audio with SDL2
enable simu for windows builds

* remove workflow changes for linux builds, this needs to be fixed in the build environment

* fix OSX build, thx @pafleraf

* fix windows audio for companion and simulator with SDL2

* select SDL2 branch of the build-docker environment

* Revert "select SDL2 branch of the build-docker environment"

This reverts commit da801609d78e1aed513ad7d9d8ab3ebded2900b9.

* fix tests with SDL2
2023-02-22 20:32:51 +10:00
Neil HorneandGitHub cbec97d76e fix(cpn): Include openssl files in install packages (#2935)
* Fix packaged win 32 bit openssl file names

* Win install openssl from qt tools

* Fix filters and paths

* Fix github workflow for x64

* Remove export from run
2023-02-22 16:57:58 +10:00
97c57cf9ee feat(colorlcd): Value widget text alignment options (#3080)
* Adds option to align value widget label and value to left, center or right border of the widget zone.

* Cpn sync

* Typofix thx to @Eldenroot

* fix: Add `TW` translation

* fix: Two spaces for indent

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
2023-02-20 14:57:58 +10:00
Peter Feerick e930183395 fix: It is now 2023 2023-02-17 22:07:06 +10:00
HThurenandGitHub 27bf42d038 chore(translation): Updates to Danish - telemetri plot 🇩🇰 (#3166) 2023-02-15 16:24:38 +10:00
3695930242 fix: Sort mixer lines after loading model (#3172)
* fix: sort mixer lines after loading model

Fixes #2806

* fix(cpn): sort mixer lines after loading model

* More efficient swap

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
2023-02-15 15:11:13 +10:00
ulfhedlundandGitHub 205342b9b4 chore(translation): Swedish translation updates 🇸🇪 (#3194)
* A few additions and minor changes

* Minor changes

* Added timer string for PR #3173

* Missing save and delete theme

Added missing strings for Save theme and Delete theme
2023-02-15 13:03:16 +10:00
Neil HorneandGitHub 1913d65b10 fix(cpn): Update firmware mapping of firmware id to repo (#3160)
* fix(cpn): Update firmware mapping of firmware id to repo bin file

* typo
2023-02-13 20:42:47 +10:00
60cdb897ee feat(cpn): Radiomaster Boxer support (#2910)
* feat(cpn): Initial Radiomaster Boxer support

* fix(build): Halt if invalid simulator plugin specified

* fix: 6POS not correctly defined

* chore: Less EEPROM stuff needed

* Start of simulator support

* Enable left buttons and fix area mapping of page up and down

* fix(cpn): Internal reference to pots

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
2023-02-11 20:10:12 +10:00
ulfhedlundandGitHub d80adc6c4d chore: Updated SE translations 🇸🇪 (#3148)
* Updated translations, error fixes etc

* Minor changes

* Minor updates

* Update for PR #2998

* Added strings for PR #2998

* Minor error fix

* Two new strings translated

* Fixed spelling mistake

* Another minor fix

* Added translations for PR #3062

* Just a few corrections

* Add files via upload

New translations added

* Changes after PR #3119 translation clean up
2023-02-08 19:21:32 +10:00
46cc979875 fix: Regenerate yaml, carryTrim => trimSource cleanup (#3121)
PR #2995 didn't take into account the data model storage actually does change when you change a variable name. 
Boxer yaml generation was missed in earlier PR. 

* chore: Run `generate-yaml.sh`

* chore(cpn): carryTrim -> trimSource

* fix(build): Boxer missing from `generate-yaml`

* dodgy attempt to read old carryTrim

* fix: Don't break the byte boundary + reorder

* fix(yaml): indentation for attributes that should not be output

* chore: Regenerate YAML after rebase

---------

Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
2023-02-05 13:46:02 +10:00
Neil HorneandGitHub 4cd43bb6c7 fix(cpn): Save "set main view" number for special/global function (#3132) 2023-02-03 20:59:06 +10:00
HThurenandGitHub 6f4abef36a chore: Updates to Danish translations 🇩🇰 (#3128)
* Qt changes and aligment in da.h

* Update companion_da.ts

Restore da to language="da_DA"
2023-02-02 13:25:00 +10:00
Neil HorneandGitHub d952333037 feat(cpn): Status dialog when writing models and settings to radio (#3043) 2023-01-26 13:53:13 +10:00
philmozandGitHub f7cdfdc2a9 fix(cpn): Joystick slider mappings (#3093) 2023-01-25 10:09:56 +10:00
eshifriandGitHub 8e8e78671a feat: Timer Voice & Haptic option, show elapsed speak time value when countdown (#2711)
* fix "odd" elapsed time announcement

* announce elapsed seconds

* Add support for "Beeps and Haptic" and "Voice and Haptic" for timer countdown.
2023-01-23 20:00:12 +10:00
philmozandGitHub 7dc2f89917 fix(ui,cpn): Error in value conversion when loading LS data (#3026)
* Fix error in value conversion when loading logical switch data from YAML files (for 'Edge' and 'Timer' functions).

* Remove debug print.

* Fix handling of telemetry sensors in Companion.
2023-01-17 14:35:13 +10:00
philmozandGitHub 60ef3a545d fix(cpn): Delete old models from radio before saving new models (#3020)
* Delete model files from radio before saving them from Companion.

* Update comments. Show error if file delete fails.
2023-01-17 13:05:33 +10:00
Neil HorneandGitHub 472d5d1a7c fix(cpn): Use correct file types/extensions on Save and Export (#3025) 2023-01-17 12:04:11 +10:00
HThurenandGitHub 98318bfbab chore(translation): DA minor changes (#3053) 2023-01-17 11:57:58 +10:00
HThurenandGitHub b390c9156f fix(cpn): Translate OFF in external module setup (#2998)
* Translate OFF in external module setup

* Update moduledata.cpp
2023-01-15 12:10:34 +10:00
philmozandGitHub 3f08af6120 feat(color): Quick Model Select, keep active model in view when changing labels (#2895)
* Fix rebase merge issue.

* Incorporate solution from @ParkerEde in PR #2626

* Fix selection logic for models.

* Select model on first press.

* Fix quick model selection when using scroll wheel & enter button.
Add setting to enable quick model selection.

* German translation.

* Fix behaviour when 'model quick select' is off to work like existing 2.8 logic.

* Add translations.

* Prioritise active model as selected model when the set of visible models changes.

* Fix selection ordering when using scroll wheel.
Minor code cleanup.
2022-12-23 09:58:49 +10:00
HThurenandGitHub cfff1d9dc7 chore(translation): Updates for Danish translations 🇩🇰 (#2907) 2022-12-21 10:59:40 +10:00
5cf2141b59 chore(cpn): Run Qt Linguist updater, translation updates (#2685)
* chore(cpn): Run Qt Linguist updater

* Fix translation errors

* fix: Reference all available translations

* Add Chinese to available radio voice languages

* fix(cpn): Add missing voice languages to firmwares

* Add translation to analogs

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-12-21 10:41:54 +10:00
philmozandGitHub af040c9e2e fix(cpn): Ignore 'Quit' event in main window on MacOS if simulator running (#2874)
Prevents app crashing on exit while the simulator is open.
2022-12-20 21:15:35 +10:00
philmozandGitHub 2133d42bd2 fix(cpn): Size of the YamlStickConfig struct was set wrong (#2891)
The YamlStickConfig definition was defined and sized with CPN_MAX_SWITCHES (32) instead of CPN_MAX_STICKS (4).
When loading radio.yml this would overwrite 112 bytes past the end of the stickName array in the GeneralSettings class.
2022-12-20 08:59:55 +10:00
HThurenandGitHub 37e07ec95d chore(translation): Update Companion and Radio Danish Translations 🇩🇰 (#2738)
* Changes after using QtLinguist

* added _DA
2022-12-16 10:26:18 +10:00
philmozandGitHub a1c55a5b02 chore: Cleanup some compiler warnings (#2864) 2022-12-16 10:24:28 +10:00
c505f9eb01 fix(sim): Fix for 2POS switch logic affected by 6POS switch change (#2860)
* Fix 2POS switch logic in simulator. Recent change for 6POS switch broke the 2POS switches.

* Rework switch and pot controls in the simulator ensure consistent values, avoid extraneous events in Qt and, hopefully, simplify the code.

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2022-12-14 18:57:01 +10:00
Neil HorneandGitHub 6f8fb7ca92 cpn(fix): set default voice language to en (#2834) 2022-12-11 12:13:06 +10:00
philmozandGitHub 1b0dab9d84 feat(sim): Forced style for POT/6POS knobs on MacOS for legibility (#2840) 2022-12-11 11:43:37 +10:00
b77bdba9a1 feat(cpn): Force light mode UI on MacOS for legibility (#2839)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2022-12-11 11:43:06 +10:00