Update DSM_Rx_cyrf6936.ino

This commit is contained in:
Pascal Langer 2020-06-03 12:55:45 +02:00
parent 5ce99ee419
commit 32ed758072

View File

@ -117,6 +117,8 @@ static void __attribute__((unused)) DSM_Rx_build_telemetry_packet()
if(nbr_bits==10) value <<= 1; // switch to 11 bits if(nbr_bits==10) value <<= 1; // switch to 11 bits
value &= 0x7FF; value &= 0x7FF;
rx_rc_chan[CH_TAER[idx]]=convert_channel_DSM_nolimit(value); rx_rc_chan[CH_TAER[idx]]=convert_channel_DSM_nolimit(value);
if(IS_DISABLE_CH_MAP_off && (CH_TAER[idx]==AILERON || CH_TAER[idx]==RUDDER))
rx_rc_chan[CH_TAER[idx]]=2047-rx_rc_chan[CH_TAER[idx]]; // Reverse AILERON and RUDDER channels
} }
} }
} }