mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-09 22:28:12 +00:00
Hitec: typo in telemetry
This commit is contained in:
parent
73dd63caa1
commit
d0c9bc801b
@ -329,14 +329,14 @@ uint16_t ReadHITEC()
|
|||||||
#if defined(HITEC_HUB_TELEMETRY)
|
#if defined(HITEC_HUB_TELEMETRY)
|
||||||
switch(pkt[5]) // telemetry frame number
|
switch(pkt[5]) // telemetry frame number
|
||||||
{
|
{
|
||||||
case 0:
|
case 0x00:
|
||||||
v_lipo1 = (pkt[12])<<5 | (pkt[11])>>3; // calculation in decimal is volt=(pkt[12]<<8+pkt[11])/28
|
v_lipo1 = (pkt[12])<<5 | (pkt[11])>>3; // calculation in float is volt=(pkt[12]<<8+pkt[11])/28
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 0x11:
|
||||||
v_lipo1 = (pkt[11])<<5 | (pkt[10])>>3; // calculation in decimal is volt=(pkt[11]<<8+pkt[10])/28
|
v_lipo1 = (pkt[11])<<5 | (pkt[10])>>3; // calculation in float is volt=(pkt[11]<<8+pkt[10])/28
|
||||||
break;
|
break;
|
||||||
case 18:
|
case 0x18:
|
||||||
v_lipo2 = (pkt[6])<<5 | (pkt[7])>>3; // calculation in decimal is volt=(pkt[6]<<8+pkt[7])/10
|
v_lipo2 = (pkt[6])<<5 | (pkt[7])>>3; // calculation in float is volt=(pkt[6]<<8+pkt[7])/10
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
TX_RSSI = pkt[13];
|
TX_RSSI = pkt[13];
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_REVISION 0
|
#define VERSION_REVISION 0
|
||||||
#define VERSION_PATCH_LEVEL 29
|
#define VERSION_PATCH_LEVEL 30
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
Loading…
x
Reference in New Issue
Block a user