Commit Graph
63 Commits
Author SHA1 Message Date
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
Peter FeerickandGitHub 73aa2e5775 fix(cpn): Handle mixer scripts with no inputs def. (#2523)
Because it seems like I managed to configure it just so
and Companion didn't like that.
2022-10-12 19:23:27 +10:00
Raphael CoefficandGitHub 6f494e109c feat(telemetry): extend link quality warnings range (#2251)
* feat(telemetry): extend link quality warnings range

* Set default values to the old legacy FrSky values

* Companion support
2022-10-12 14:28:32 +10:00
73861554ec feat: Support for 8s Cell Sensor such as FrSky FLVS ADV (#2302)
* first commit for FrSky 8s Lipo Sensor

FLVS Advanced transfers up to 8 cell voltages for Cels sensor

* correcting mistake made transferring local change to PR

* complementary extension of Companion telemetry simulator to enable simulation of  8 cells

* change to allow selection of cells 7 and 8 in calculated sensor with formula Cell

* (cpn) Add bin and yml conversions and basic semantic version helper

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-09-27 20:06:26 +10:00
c8693569b0 feat(color): New label based Model Selector (#1374)
* Model Labels Selector

* Portrait Layout

* Receiver ID Check

* Fix Labels .yml format

* Companion Initial Commit

commit 967ddf3979b4954402fe62c858faba4b7a416bba
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:49:15 2022 -0700

    Fix Labels .yml format

commit 534221cad9e01146c47a9ac1080a655e04f1f6c8
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:20:57 2022 -0700

    Receiver ID Check

commit f32c0939d44e9ae60bc0705a9176354c23fec198
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sun Aug 28 23:13:25 2022 -0700

    Portrait Layout

commit 961181217c7841ff3f21299ac6aa419b810f80e9
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sat Dec 11 16:56:13 2021 -0800

    Model Labels Selector

commit dc99dd40d2
Author: David PHAM-VAN <1387855+DavBfr@users.noreply.github.com>
Date:   Fri Aug 26 03:04:34 2022 -0300

    feat: Allow Lua widget to override built-in widget with same name (#2208)

    * Allow CPP Widgets Override with LUA

    * Reset a widget option it the type differs

commit 4b747caff9
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Thu Aug 25 19:47:53 2022 -0700

    fix: Write model name into models.yml when duplicating model (#2224)

    * Update model name in the models.yml file (#2214)

    * Fix the length of the name.

commit e97f23a305
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Wed Aug 24 21:19:52 2022 -0700

    fix(cpn): Fix full path to model notes for Simulator (#2223)

* Correct Highlighted Column

* labels .yml indentation

* Update da.h

New defines translated to Danish

* Update dataconstants.h

Omit warnings due to difference of LEN_MODEL_FILENAME and LEN_MODEL_NAME in modellist.cpp

* Update modelslist.cpp

Wonder if this are the right file in PR #1374 (?), seems a lot are changed to the better in #1374

* Update dataconstants.h

Restore #define for LEN_MODEL_FILENAME to 16

* Rebase, Correct Issues

Delete now deletes instead of select
New model stores correct information
Duplicate save all information in cell
Rework items to use cell over button
Reword function variables

* CMPN: Add context menu

Fix output not functional. Removed Yaml::null at some point :)
Fix some compiler warnings

* CMPN: Compiler warning, replace ,->_ in list

* FW: Various Changes

Change view to a grid
Don't allow comma in label name
Add scroll indicators
Save sort order

Co-authored-by: HThuren <99370924+HThuren@users.noreply.github.com>
2022-09-03 09:01:19 +10:00
be7a6a51ab feat: Allow the timer count direction to be selected (#2038)
* timer direction: ellapsed or left

* Add AUDIO announcement support

* Storage for showElapsed

* Translations

* Fix storage

* BW implementation

* Different BW implementation

* Companion support

* Color LCD implementation and rebase to lvgl

* Fix problems found by raphaelcoeffic

* chore: Regenerate the YAML files properly

* fix: Remove unused `TR_SHOW` remnant

* chore: Formatting and cleanup

* fix: Timer dir choice was shown in wrong place
Wrong newline used in ce23b50

* Fix cpn ui triggers, remove unnecessary code and some formatting

* fix(colorlcd): Hide timer dir opt if zero value

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-08-03 09:22:42 +10:00
Neil HorneandGitHub 37dffc264d fix(companion): Handling of Mixer Script yaml settings (#2016) 2022-07-15 20:32:56 +10:00
Neil HorneandGitHub cba4e07ce1 fix: Pot and slider warnings weren't being set properly on radio or syncing with Companion (#1981)
- fix Companion yaml model read and write
- B&W radios treat bit values the same as color to avoid unnecessary complication for Companion and radio conversions
- B&W radios default is therefore off for all pots and sliders
- B&W radios fix runtime warnings check
- all radios fix to save last pot or slider position when checked and mode AUTO on change of model or power off
- all radios do not display Pots Warning in model setup if no pots or sliders supported
2022-06-07 13:04:40 +10:00
Neil HorneandGitHub 077abf719d chore(cpn): read/write semver in model and radio yml files (#1977)
Companion part of #1695, making it so companion is not removing written semver
2022-06-04 11:09:39 +10:00
ab15a5a514 chore: Companion - port of OpenTX function switches management (#1694)
* TPro - Port of OpenTX function switches management (https://github.com/opentx/opentx/pull/8847)

* cleanup

* Corrections

* Fix YAML generation and adjusted switches to match TPRO firmware

Co-authored-by: Batam <batam@macbook-pro.home>
2022-03-21 10:43:27 +10:00
Neil HorneandGitHub 035bd391fb fix: Companion not reading/writing B&W telemetry screens correctly (#1562) 2022-02-08 10:15:08 +10:00
Neil HorneandGitHub e94730afc4 fix: Companion not correctly reading/writing trainer settings (#1560) 2022-02-06 11:22:07 +10:00
Neil HorneandGitHub b865448752 fix: Telemetry "Ignore instances" option being unset by Companion (#1525) 2022-01-30 15:14:33 +10:00
bf931a5097 feat: Add facilty for custom throttle warning position (#1395)
* replace magic number for throttle idle with correct define

* settings for custom throttle warning position

* settings fixed not to break byte-aligment of bit-fields

* evaluate custom throttle warning position

* add requested throttle value to warning text

* comment about field alignment in ModelData struct

* Menu for editing custom throttle warning for 128x64 radios
Tested on RM TX12

* Improoved menu display

* move displayed strings to translation

* translation template added for each language

* support for 212x64 B&W radios

* menu for colorlcd
not tested

* corrected translation entry for TW

* corrected handling of padding bits in ModelData structure

* Companion support for custom throttle warning position

* Rebase catchup

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-01-30 15:04:40 +10:00
c3c8a2e3f1 feat: Model level ADC Jitter filter option (#1363)
* ADC Filter - On/off state configurable at the model level

* Updated YAML configuration to match change from ADC Filter feature commit

* Companion changes to support ADC jitter filter to be a model configuration item.

* Renamed jitterFilter field to noJitterFilter.

This better describes the semantic, which is inverted.

* Updated after review

* Re-run generate-yaml

* Changed ADC Jitter filter control on Model to be tri state.
Off, On or use the radio setting

* Adde NOBACKUP() to the added field

* Re-generate yaml_datastructs

* Making the default state to use radio setting/Global value

* Updated after review:
Changing to more consistent naming across firmware and companion.

* Reverted  files that was accidently added to the commit.

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-01-26 20:54:23 +10:00
Raphael Coeffic 8071807584 Fix flight mode trim disabled 2022-01-16 10:38:52 +01:00
7a628d4c15 fix: Companion read/write of failsafe settings, how displayed on radio (#1399)
* Fix failsafe settings

Resolve #1393

* trigger save if failsafe numbers changed + cleanup

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-01-11 23:09:55 +10:00
Raphael Coeffic 7b2f983d04 Fix throttle source shift 2022-01-03 09:08:57 +01:00
Raphael Coeffic 85a184f15e Catch all exceptions thrown by std::stoi() 2022-01-01 13:51:20 +01:00
Raphael Coeffic 0190b1e19d Fixed reading flight mode data (gvars) 2021-12-31 10:53:11 +01:00
Raphael Coeffic 7b2d7158ff Fixed curve reference in outputs 2021-12-31 10:53:11 +01:00
Raphael Coeffic c4cb491966 Fixed output min/max 2021-12-31 10:53:11 +01:00
Raphael Coeffic 36aaa8d555 Fix GVAR output 2021-12-31 10:53:11 +01:00
Raphael Coeffic c8cd009ea2 Fix output encoding/decoding 2021-12-31 10:53:11 +01:00
Raphael Coeffic 0c88f4e52b Small fixes 2021-12-31 10:53:11 +01:00
Raphael Coeffic 282ba2bd5a Fixed switch warnings 2021-12-31 10:53:11 +01:00
Raphael Coeffic a9e1e7d18e Filter out empty topbar data 2021-12-31 10:53:11 +01:00
Raphael Coeffic 1d2892ee2f Remove some more empty attributes 2021-12-31 10:53:11 +01:00
elecpowerandRaphael Coeffic 44146f1e4f Fix decode rawswitch and more encode bools 2021-12-31 10:53:11 +01:00
elecpowerandRaphael Coeffic 28fbbfa515 Fix error when no curve points node 2021-12-31 10:53:11 +01:00
Raphael Coeffic 1ec3113a85 Fixed outputting timers, flight modes, mixers and limits 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic 3809c1d0ff Fix YamlSwitchWarningState 2021-12-31 10:53:10 +01:00
Raphael Coeffic d3e619cec4 Removed unused YamlRssiSource 2021-12-31 10:53:10 +01:00
Raphael Coeffic 616b271e30 Add various telemetry sources and screens 2021-12-31 10:53:10 +01:00
Raphael Coeffic 51f66a9e79 modelID and small fixes 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic eafc0d4193 Add rssiSource and fix rssiAlarms 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic 788f263814 Add rssiAlarms 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic 707e8e83bf Add telemetryProtocol 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic 3482723805 Add switchWarningState 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic bc115319a5 Add potsWarnPosition 2021-12-31 10:53:10 +01:00
Raphael Coeffic a4ad8154eb Add function switches 2021-12-31 10:53:10 +01:00
Raphael Coeffic 2a1cc9719e Add screen / topbar data 2021-12-31 10:53:10 +01:00
Raphael Coeffic 9409503728 Add sensor data / script data 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic 9d81de1d29 Add potswarnenable 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic dac2a9401b Add potswarningmode 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic d7ca02403f Model gvars 2021-12-31 10:53:10 +01:00
Raphael Coeffic 56997f4d3c Use definitions in Boards for pots/sliders config 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic d37b5d3c57 Thr trim switch 2021-12-31 10:53:10 +01:00
elecpowerandRaphael Coeffic a6d2127352 SwashRing and center beep 2021-12-31 10:53:10 +01:00
Raphael Coeffic 4efa5bbed7 Added custom functions 2021-12-31 10:53:10 +01:00