From c153d236f2b4847abdfa92c2bf242880252b1209 Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Wed, 12 Sep 2018 06:49:40 -0400 Subject: [PATCH] SLT Q100/Q200/MR100: reverse elevator --- Multiprotocol/Multiprotocol.h | 4 ++-- Multiprotocol/SLT_nrf24l01.ino | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index d0764f9..938ce86 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -18,8 +18,8 @@ //****************** #define VERSION_MAJOR 1 #define VERSION_MINOR 2 -#define VERSION_REVISION 0 -#define VERSION_PATCH_LEVEL 49 +#define VERSION_REVISION 1 +#define VERSION_PATCH_LEVEL 0 //****************** // Protocols diff --git a/Multiprotocol/SLT_nrf24l01.ino b/Multiprotocol/SLT_nrf24l01.ino index 75d855f..3ce909f 100644 --- a/Multiprotocol/SLT_nrf24l01.ino +++ b/Multiprotocol/SLT_nrf24l01.ino @@ -141,8 +141,8 @@ static void __attribute__((unused)) SLT_build_packet() for (uint8_t i = 0; i < 4; ++i) { uint16_t v = convert_channel_10b(CH_AETR[i]); - if(sub_protocol>SLT_V2 && CH_AETR[i]==THROTTLE) - v=1023-v; // reverse throttle channel for Q100/Q200/MR100 protocols + if(sub_protocol>SLT_V2 && (CH_AETR[i]==THROTTLE || CH_AETR[i]==ELEVATOR) ) + v=1023-v; // reverse throttle and elevator channels for Q100/Q200/MR100 protocols packet[i] = v; e = (e >> 2) | (uint8_t) ((v >> 2) & 0xC0); }