Bayang telemetry : sending volt/4

Change for Taranis
This commit is contained in:
pascallanger 2016-12-09 08:24:51 +01:00
parent 36cb0fb4cd
commit c2577df6f7

View File

@ -145,10 +145,10 @@ static void __attribute__((unused)) check_rx(void)
// decode data , check sum is ok as well, since there is no crc
if (packet[0] == 0x85 && packet[14] == check)
{
// uncompensated battery volts*100/2
v_lipo1 = (packet[3]<<7) + (packet[4]>>2);
// compensated battery volts*100/2
v_lipo2 = (packet[5]<<7) + (packet[6]>>2);
// uncompensated battery volts*100/4
v_lipo1 = (packet[3]<<6) + (packet[4]>>3);
// compensated battery volts*100/4
v_lipo2 = (packet[5]<<6) + (packet[6]>>3);
// reception in packets / sec
RSSI_dBm = packet[7];
//Flags