Esky150: add sub protocols 4CH and 7CH

This commit is contained in:
pascallanger
2019-11-28 17:01:33 +01:00
parent 6a7497cdf8
commit c803eeb26a
6 changed files with 24 additions and 8 deletions

View File

@@ -92,8 +92,8 @@ static void __attribute__((unused)) ESKY150_send_packet()
uint8_t flight_mode=0;
uint16_t aux_ch6=0;
uint8_t aux_ch7=0;
if(option==1)
{
if(sub_protocol)
{ // 7 channels
flight_mode=ESKY150_convert_2bit_channel(CH5);
aux_ch6=convert_channel_16b_limit(CH6,1000,2000);
aux_ch7=ESKY150_convert_2bit_channel(CH7);