Hitec: new protocol

Hitec protocol using the CC2500 RF component
Protocol number: 39
Sub protocols:
 - Optima (0): the TX must be really close to the RX for the bind negociation to complete.
- Minima (1): untested
Optima supports basic telemetry using the FrSky Hub format: RX volt, TX RSSI,&LQI
This commit is contained in:
Pascal Langer
2018-08-03 18:29:24 +02:00
parent 0b8ff15133
commit d9f343e20b
8 changed files with 409 additions and 15 deletions

View File

@@ -177,12 +177,6 @@ static void AFHDS2A_build_packet(uint8_t type)
packet[0] = 0x58;
for(uint8_t ch=0; ch<14; ch++)
{
if(ch >= 12) // limit to 12 channels, 14 needs to be tested
{
packet[9 + ch*2] = 0xdc;
packet[10 + ch*2] = 0x05;
continue;
}
uint16_t channelMicros = convert_channel_ppm(CH_AETR[ch]);
packet[9 + ch*2] = channelMicros&0xFF;
packet[10 + ch*2] = (channelMicros>>8)&0xFF;