feat: Support for ext. Multiplex MLink JR type module (#3352)

* introducing external MLink module telemetry as module PPM subtype

* implemented fix for sensor discovery display not showing all detected sensors (is in separate PR too)

implemented PPM subtypes in Companion

* add PPM subtype to model printer

finalize subtypes for PPM in Companion

* added logic to try to use HW UART with inverters turned off first (e.g. NV14), then, if not successfull use soft serial inverted (== uninverted data due to HW inverters on PCB)

changed start bit detection IRQ priority from 5 to the previous 0 (also in separate PR)

* extended telemetry timeout to 2s due to slow Mlink RSSI update rate

* changed the "NOTLM" sub-type texts to:

- "No Telem" for 128x64 (this is the max numbers of characters it can take)
- "No Telemetry" everything else including Companion

* Companion:

- lower case 1st charachter on PpmSubTypeStrings to ppmSubTypeStrings
- added telemetry hooks for ppmSubTypeStrings stringx

* simplified serial port initialization for MLink telemetry

* editorial change: corrected obsolete comment
This commit is contained in:
Michael
2023-05-16 11:22:47 +10:00
committed by GitHub
parent 3d6bc638a6
commit 5db37e2a2b
21 changed files with 231 additions and 14 deletions
+3
View File
@@ -134,6 +134,7 @@
#define TR_R9M_FCC_POWER_VALUES "10mW","100mW","500mW","1W (auto)"
#define TR_R9M_LBT_POWER_VALUES "25mW 8CH","25mW 16CH","200mW NoTele","500mW NoTele"
#define TR_PPM_PROTOCOLS TR("No Telem", "No Telemetry"),"MLink"
#define TR_DSM_PROTOCOLS "LP45","DSM2","DSMX"
#define TR_MULTI_PROTOCOLS "FlySky","Hubsan","FrSkyD","Hisky","V2x2","DSM","Devo","YD717","KN","SymaX","SLT","CX10","CG023", \
@@ -187,6 +188,7 @@
#define STR_SENSOR_ACCX "AccX"
#define STR_SENSOR_ACCY "AccY"
#define STR_SENSOR_ACCZ "AccZ"
#define STR_SENSOR_ACC "Acc"
#define STR_SENSOR_GYROX "GYRX"
#define STR_SENSOR_GYROY "GYRY"
#define STR_SENSOR_GYROZ "GYRZ"
@@ -318,6 +320,7 @@
#define STR_SENSOR_SERVO_VOLTAGE "SrvV"
#define STR_SENSOR_SERVO_TEMPERATURE "SrvT"
#define STR_SENSOR_SERVO_STATUS "SrvS"
#define STR_SENSOR_SPECIAL "Spcl"
#define STR_CHAR_RIGHT "\302\200"
#define STR_CHAR_LEFT "\302\201"