mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 21:58:10 +00:00
Bayang: change back A1/A2 to max resolution
This commit is contained in:
parent
758779a8f5
commit
bf230322d0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user