Commit Graph
32 Commits
Author SHA1 Message Date
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
Peter Feerick 6e872e5823 fix: Companion MPM consistency 2022-03-22 16:23:46 +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
MRC3742andGitHub 6da4766e56 MPM Updates (#8197) 2021-01-04 20:27:52 +01:00
MRC3742andGitHub 014c408698 Updates for MPM version 1.3.1.79 (#8158)
Thanks @MRC3742 !
2020-12-11 16:50:56 +01:00
3djc b50ec5355a Multi DSM string clarification 2020-07-04 10:41:16 +02:00
MRC3742andGitHub 7b01eb0722 Updates for MPM version 1.3.1.24 (#7779) 2020-06-29 07:05:29 +02:00
3djcandGitHub 2d01916055 Preliminary T18 support (#7581) 2020-06-22 21:15:47 +02:00
MRC3742andGitHub af58426261 Update MPM to 1.3.1.9 (#7682) 2020-06-15 11:38:55 +02:00
MRC3742andGitHub 14cd03a93a Additional MPM 1.3.1.1 support updates (#7635) 2020-05-26 07:30:57 +02:00
3djc 591d4498df Add tinsize 2020-05-23 11:38:00 +02:00
3djcandGitHub d8ffd1eada Fix companion handling of unknow protocols (#7567)
* Tentative fix

* cosmetics
2020-05-02 20:03:17 +02:00
c11b565f03 Support for Multi FrSky 2.1.x (#7472)
* FRSKY X2.1 support

* String fixes

* Cosmetics

* Improve 128 multi GUI

* Improve 128 internal multi GUI

* Improve 1212 multi GUI

* Fix

* Adjust multi upgrade version warning

* Cosmetics

* Cosmetics

* Cosmetics

Co-authored-by: Kilrah <kilrah@andrebernet.ch>
2020-03-29 21:02:29 +02:00
3djcandGitHub 653d260a60 Update companion multi parts to bring in line with radio (#7237) 2020-01-03 13:21:26 +01:00
3djcandGitHub 3a7e006635 Support new Multi 1.3 features (#7077) 2019-11-15 16:20:24 +01:00
Raphael Coefficand3djc 54bb04f049 New multi protocols (#6920)
* New Multi protocols

Scanner
FrSkyX RX
Flyskys AFHDS2A RX

* Skip Multi/Scanner protocol

* added new protocols in companion
2019-10-10 15:29:39 +02:00
3djc 9319b48f0e Multi last minute fixes 2019-09-27 13:38:29 +02:00
MRC3742 2877077fab Multi protocol updates to MPM version 1.2.1.71 2019-08-19 13:46:47 -04:00
3djc 97bd99b0f2 Revert "Remove uneeded change"
This reverts commit 34054607
2019-08-19 11:02:01 +02:00
3djc 3405460723 Remove uneeded change 2019-08-19 11:00:22 +02:00
Raphael Coeffic f11dab2dc7 added missing pieces for MPM new protocols 2019-08-19 08:40:40 +02:00
MRC3742 42f48680e1 Multi protocol updates to MPM version 1.2.1.63 2019-06-20 22:07:08 -04:00
MRC3742 7fa8f0bf03 Travis build error fix for PR #6466 Update MPM for 2.3 2019-05-29 14:44:36 -04:00
MRC3742andBertrand Songis 30f7c08962 Multi protocol updates to MPM version 1.2.1.51 (#6466) 2019-05-29 20:09:13 +02:00
Bertrand SongisandGitHub 4d07faa8e0 Bsongis/accst support over pxx2 (#6455)
ACCST support over PXX2
2019-05-27 17:23:17 +02:00
MRC3742andAndre Bernet 350acc3cc3 Multi protocol updates to MPM version 1.2.1.16 (#6249) 2019-01-06 10:59:40 +01:00
MRC3742 3dbcd436e8 Multiprotocol listing updates for 2.3 branch 2018-10-11 21:53:05 -04:00
3djc 95c035ed73 Support for non certified firmwares (#6118)
* Support new r9m firmwares

* More future proof, thx Kilrah

* (significant) typo

* Companion part

* Make support a compilation option

* Fix compilation for normal users

* Warning popup for usability tests

* Better implementation

* All sizes

* Cosmetics

* Flex is EU+/AU+ only

* [Companion] Handle "flexr9m" option in module settings UI (to match radio UI, including warning msg); Move some "toString" functions out of ModelPrinter into ModuleData/Multiprotocols; "Future-proof" available R9M power options based on "stdr9m" fw option; Fix missing "Hitec" MM protocol name; Fix printing of R9M-EU power level in ModelPrinter.

* Cosmetics

* Rename R9M flex option

* Move failsafe further back to prevent nav oddity
2018-08-30 13:16:39 +02:00
Arne Schwabe eaae858a38 Update Multi protocols 2018-08-03 13:21:31 +02:00
Arne SchwabeandBertrand Songis e3f2664440 Update multi protocol definitions (#5930) 2018-06-02 18:15:13 +02:00
Max PapernoandBertrand Songis 59a835b1b3 [Companion] Radio data refactoring (#5551)
* [Companion] Refactor radio data classes to own files, out of eeprominterface.cpp.  No functional changes.

* Move files related to refactoring. No functional or code changes.

* Fix clang warning and an include path.

* Fix indents on curvereference.cpp. [ci skip]
2017-12-20 13:31:43 +01:00