Commit Graph
3488 Commits
Author SHA1 Message Date
RistoandGitHub 08e1ed79b7 fix: Companion decibel Db -> dB in telem simulator(#1866) 2022-04-21 09:30:47 +10:00
Neil HorneandGitHub 06e458e190 fix: Companion - antenna mode not displaying for new model (#1863) 2022-04-20 11:41:40 +10:00
Neil HorneandGitHub dc3b55771f fix: cpn: custom curve edit default points and expand curve tab details column (#1815) 2022-04-14 10:16:57 +10:00
Neil HorneandGitHub 6da73376e1 cpn: remove multi protocol Config from list (#1810) 2022-04-14 10:06:43 +10:00
d9b51f8ecf feat: Deadzone option for NV14 sticks (#1777)
Imported from open-flysky/Flysky-OpenTX-Test-Branch

* companion: Don't nuke `stickDeadZone` setting

* Implement data storage properly

* Add missing check for NV14 storage struct sizes

* Formatting

* Use one less byte in the packed data struct
Thanks @raphaelcoeffic :)

* Move setting of stickDeadZone default

* Use a Choice combo rather than NumberEdit

* Good riddance magic number

* Also set default stick zone if setting is missing

* Teach tests about `STICK_DEAD_ZONE`

* Tweak choice width

* Cpn NV14 add stick dead zone to hardware and section labels

* Cpn NV14 align default pot names to radio

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-04-06 10:30:20 +10:00
Neil HorneandGitHub c8e9ca0a32 fix: Companion trainer modes OFF and Master-Multi available for all radios (#1806)
* Allow trainer modes OFF and Master-Multi for all radios

* Change Trainer mode Off to the standard OFF

* fix: German for Trainer OFF, Master and Slave
2022-04-05 20:16:19 +10:00
Neil HorneandGitHub c4904be508 fix: cpn - Yaml rawswitch decode fix and housekeeping (#1801)
Whereby some SF and GF "switches" were not being read by Companion
2022-04-05 15:07:05 +10:00
Neil HorneandGitHub 4dfff74dd2 feat: cpn - Add context menu to curves tab images (#1803) 2022-04-05 15:04:31 +10:00
Neil HorneandGitHub 777b0a48ae fix: Companion improve themes exceptions handling (#1763) 2022-03-30 19:28:46 +10:00
Neil HorneandGitHub 0eba9588b1 fix: Fix Cpn Lemon-rx DSMP type yaml (#1758) 2022-03-30 12:07:37 +10:00
Raphael CoefficandRaphael Coeffic 12e96e451f Added Companion support 2022-03-24 10:40:17 +01:00
Peter Feerick 6e872e5823 fix: Companion MPM consistency 2022-03-22 16:23:46 +10:00
Peter FeerickandGitHub b54ad7169a feat: Option for inverting rotary encoder direction (#1690)
* feat: Add option for rotary encoder direction
Based heavily on opentx/opentx#8852 by @3djc

* companion ui elements

* Cleanup

* Hook up UI, reading setting from yaml

* Teach simulator about rotEncDirection

* Simu and radio default scroll direction correction
Otherwise the "default" would be the opposite to how it has always been

* Remove what will be a confict with fix in #1586

* Wasn't using rotEncDirection consistently

* Zorro RE dir is opp to TX16, TX12, TPro, X9D+2019
2022-03-22 16:14:57 +10:00
Peter FeerickandGitHub 33f761c17b feat: Configurable external CRSF baud rates (see #1581)
CRSF modules baudrate
2022-03-22 16:06:57 +10:00
Neil HorneandGitHub f4c8091301 Companion MPM id to string list mismatch and MT99 sub-type list typo (#1719) 2022-03-22 06:32:11 +10:00
Peter FeerickandGitHub c327c6c0db fix: TPro FS showing in global funcs and MPM protocol list updates (#1705)
* Init contrast earlier for 128 B&W screens
https://github.com/opentx/opentx/pull/8882

* fix: TPro - No FS in global functions
https://github.com/opentx/opentx/pull/8845

* Missing IS_SWITCH_FS defintions

* Update MPM fallback SUBTYPE and OPT strings

* Custom MPM proto should not be processed
2022-03-21 20:57:04 +10:00
Peter FeerickandRaphael Coeffic 3502f74830 cpn: Hide model telemetryBaudrate combo if int RF 2022-03-21 11:52:20 +01:00
Peter FeerickandRaphael Coeffic b0910ebec5 cpn: Ghost read telemetryBaudrate also 2022-03-21 11:52:20 +01:00
Peter FeerickandRaphael Coeffic 5e457172a2 Add companion decoding of crsf mod option 2022-03-21 11:52:20 +01:00
Raphael Coeffic cb739fc11e Some fixes and proper defaults 2022-03-21 11:52:20 +01:00
Raphael Coeffic 17986843e3 Add Baudrate to Module Setup 2022-03-21 11:52:19 +01:00
Raphael Coeffic ebfb0b61f0 Companion: YAML and hardware panel 2022-03-21 11:52:19 +01:00
Peter FeerickandGitHub cc609a6a3b feat: Major serial driver re-write - see #1089 for details
Serial refactor
2022-03-21 19:58:26 +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
Raphael Coeffic e64c93f468 Companion: Zorro has AUX1 2022-03-20 16:30:59 +01:00
Raphael Coeffic 7ac8504571 Companion: no AUX1 for NV14 2022-03-20 16:30:59 +01:00
Raphael Coeffic 1f6eb271cc Exclude disabled functions on VCP 2022-03-20 16:30:59 +01:00
Raphael Coeffic 6f3ad75821 Serial port settings are mutually exclusive 2022-03-20 16:30:59 +01:00
Raphael Coeffic e37a8bff7d Added YAML serialPort
TODO:
- restrict serial modes for VCP
- allow a function to be assigned only to one port
2022-03-20 16:30:59 +01:00
Neil HorneandGitHub 87a3d2f9e7 fix: Companion decode of Act and Telemetry switches (#1708) 2022-03-20 19:18:30 +10:00
Peter Feerick bc70f465bf fix: Companion showing Ghost 12bit checkbox when CROSSFIRE selected 2022-03-17 18:57:29 +10:00
a1e7d70722 chore: Clean up some issues introduced in #1363
* Clean up some errors introduced in PR #1363

- Cleaning up bad YAML definitions
- Reverted renaming of 'jitterfilter' radio setting in storage/conversions/yaml/ files

* Add a custom attribute to allow for backward compatibility

* Prevent custom attributes without a 'write' function to output a tag

* companion - read but don't write old name

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-03-16 18:07:26 +10:00
4571c7b724 chore: Companion - add support for GHOST 12bit opt (#1689)
* chore: Companion - add support for 12bit GHOST opt
Resolves #1510

* Ghost protocol reading and writing non-yaml formats

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-03-14 11:10:12 +10:00
ulfhedlundandRisto 7bf679908b Updated Swedish translations 2022-03-12 20:27:45 +01:00
Neil HorneandGitHub e0e196a6e6 feat: Companion - New model curve tab layout, curve edit dialog and mix edit curve view (#1484)
Add curve image and double click to edit to input edit, mix edit and outputs
2022-03-08 13:10:13 +10:00
Neil HorneandGitHub 70a4f6c154 fix: Companion will set critical radio general settings to profile defaults if mismatched boards (#1575)
* Do not import potentially conflicting radio settings

* Revert "Do not import potentially conflicting radio settings"

This reverts commit 06a19c04d6de341568362b87311264081aa3d38f.

* Override critical general settings to defaults when board mismatch
2022-03-08 11:49:34 +10:00
Neil HorneandGitHub f764dfcc2e fix: Serial/telemetry max baud rate wasn't being read/written correctly (#1570) 2022-03-08 11:36:29 +10:00
Neil HorneandGitHub 407ada00f8 fix: Companion wasn't reading/writing Haptic SF values correctly (#1571) 2022-02-08 12:18:14 +10:00
Neil HorneandGitHub ba93abc30c fix: Companion no longer implies will convert if profile mismatch on read + add board parameter if missing (#1572) 2022-02-08 11:17:32 +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 44f12ba7f0 feat: Improve searching for previous versions of companion app settings (#1540) 2022-02-04 10:50:22 +10:00
Neil HorneandGitHub 8158a8924d fix: Show default names in Companion if switch/source names only spaces (#1524) 2022-01-30 19:06:21 +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
d1ef6f866c [tpro] fix function switch behaviours and add always on capability (#1479)
* fix: tpro function switch toggle mode

* feat: Function switches now have alway on option

* Companion support for function switch always on

* Fix nasty eeprom error

* Update fs startup item model

* Fix Tpro SWITCH_EXISTS

Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-01-23 18:42:31 +10:00
Peter Feerick c6a9101314 fix: Companion simulator breakage from #1480 2022-01-23 14:18:03 +10:00
Raphael Coeffic 83f03a81df Fixed logical switch index check in raw sources
Resolves #1474
2022-01-21 07:05:54 +01:00
Raphael Coeffic cdd933d6e1 Fix shift for logical switches in raw sources
Resolves #1439
2022-01-16 11:46:55 +01:00