FrSkyX: TXQly is the percentage of telemetry received packets (100...0%)

This commit is contained in:
Pascal Langer 2020-07-05 00:28:43 +02:00
parent fbd5d7cf48
commit 5ab00b9d18
2 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ void Frsky_init_clone(void)
//FRSKYX
/*02_IOCFG0*/ 0x06 ,
/*00_IOCFG2*/ 0x06 ,
/*17_MCSM1*/ 0x0c , //X2->0x0E -> Go/Stay in RX mode
/*17_MCSM1*/ 0x0c , //X2->0x0E -> RX stays in RX and TX stays in TX???
/*18_MCSM0*/ 0x18 ,
/*06_PKTLEN*/ 0x1E ,
/*07_PKTCTRL1*/ 0x04 ,
@ -511,7 +511,7 @@ static void __attribute__((unused)) FrSkyX_init()
CC2500_WriteReg(CC2500_08_PKTCTRL0, 0x05); // Enable CRC
if(!(FrSkyFormat&2))
{ // FCC
CC2500_WriteReg(CC2500_17_MCSM1, 0x0E); // Go/Stay in RX mode
CC2500_WriteReg(CC2500_17_MCSM1, 0x0E); //0x0E -> RX stays in RX and TX stays in TX???
CC2500_WriteReg(CC2500_11_MDMCFG3, 0x84); // bitrate 70K->77K
}
}

View File

@ -359,13 +359,13 @@ bool frsky_process_telemetry(uint8_t *buffer,uint8_t len)
TX_RSSI -= 128;
else
TX_RSSI += 128;
TX_LQI = buffer[len-1]&0x7F;
}
telemetry_link|=1; // Telemetry data is available
#if defined FRSKYD_CC2500_INO
if (protocol==PROTO_FRSKYD)
{
TX_LQI = buffer[len-1]&0x7F;
//Save current buffer
for (uint8_t i=3;i<len-2;i++)
telemetry_in_buffer[i]=buffer[i]; // Buffer telemetry values to be sent