MT99XX/Dragon: batt telemetry correction & low batt flag

This commit is contained in:
Pascal Langer 2021-04-17 18:31:41 +02:00
parent a9d9c4cdfa
commit 34f16b0b66
3 changed files with 4 additions and 3 deletions

View File

@ -389,7 +389,8 @@ uint16_t MT99XX_callback()
if(packet_in[8] == check && packet_in[0] == rx_tx_addr[0] && packet_in[1] == rx_tx_addr[1] && packet_in[2] == rx_tx_addr[2])
{ // checksum and address are ok
// debug(" OK");
v_lipo1 = packet_in[3];
v_lipo1 = packet_in[3] & 0x7F; // Batt
v_lipo2 = packet_in[3] & 0x80; // Low batt flag
RX_RSSI=100;
telemetry_link = 1;
}

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 2
#define VERSION_PATCH_LEVEL 74
#define VERSION_PATCH_LEVEL 75
#define MODE_SERIAL 0

View File

@ -1085,7 +1085,7 @@ A|E|T|R|3D6G
### Sub_protocol DRAGON - *6*
Model: Eachine Mini Wing Dragon
Telemetry is supported: A1 = battery voltage with a Ratio of 25.5, RSSI = dummy value of 100
Telemetry is supported: A1 = battery voltage with a Ratio of 25.5, A2=battery low flag (0=off,>0=on) and RSSI = dummy value of 100
CH1|CH2|CH3|CH4|CH5|CH6
---|---|---|---|---|---