Commit Graph
54 Commits
Author SHA1 Message Date
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
Raphael Coeffic 7fc4963759 Some fixes 2021-12-31 10:53:10 +01:00
Raphael Coeffic c6b23797a7 Logical switches 2021-12-31 10:53:09 +01:00
Raphael Coeffic 80c62bb1f0 Module settings 2021-12-31 10:53:09 +01:00
Raphael Coeffic d0089232ff Fixes saving b&w models 2021-12-31 10:53:09 +01:00
Raphael Coeffic 6018765107 Added inputs and curves 2021-12-31 10:53:09 +01:00
elecpowerandRaphael Coeffic d636487663 Fix more compiler warnings 2021-12-31 10:53:09 +01:00
Raphael Coeffic 8fd3e0d5c8 Throttle trace 2021-12-31 10:53:09 +01:00
Raphael Coeffic e73d9c5707 Added flight mode data 2021-12-31 10:53:09 +01:00
Raphael Coeffic f5271b806e Raw source encoding and limit data 2021-12-31 10:53:09 +01:00