Bayang: change back A1/A2 to max resolution

This commit is contained in:
pascallanger 2016-12-09 16:56:00 +01:00
parent 758779a8f5
commit bf230322d0

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