Hitec: new sub_protocol to support forward telemetry

OPT_FW (0) : OPTIMA + forward telemetry packets to TX to be decoded
OPT_HUB (1) : OPTIMA + basic telemetry using FrSky Hub format
MINIMA (2) : Minima/Micro/RED
This commit is contained in:
Pascal Langer
2018-08-09 19:51:07 +02:00
parent eb89b5be1b
commit 2f5252ab88
5 changed files with 48 additions and 40 deletions

View File

@@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 30
#define VERSION_PATCH_LEVEL 31
//******************
// Protocols
@@ -234,8 +234,9 @@ enum CORONA
};
enum HITEC
{
OPTIMA = 0,
MINIMA = 1,
OPT_FW = 0,
OPT_HUB = 1,
MINIMA = 2,
};
#define NONE 0
@@ -689,8 +690,9 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
COR_V2 1
FD_V3 2
sub_protocol==HITEC
OPTIMA 0
MINIMA 1
OPT_FW 0
OPT_HUB 1
MINIMA 2
Power value => 0x80 0=High/1=Low
Stream[3] = option_protocol;