From 6a7c73592494765e1efb727ae6bde3c91099d4d2 Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Tue, 4 Jun 2019 22:02:20 +0200 Subject: [PATCH] Fix V761 input --- Multiprotocol/Multiprotocol.h | 2 +- Multiprotocol/V761_nrf24l01.ino | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index 2ccf42e..073c218 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -19,7 +19,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 2 #define VERSION_REVISION 1 -#define VERSION_PATCH_LEVEL 52 +#define VERSION_PATCH_LEVEL 53 //****************** // Protocols diff --git a/Multiprotocol/V761_nrf24l01.ino b/Multiprotocol/V761_nrf24l01.ino index e7320b4..72f036d 100644 --- a/Multiprotocol/V761_nrf24l01.ino +++ b/Multiprotocol/V761_nrf24l01.ino @@ -68,7 +68,7 @@ static void __attribute__((unused)) V761_send_packet() { packet[0] = convert_channel_8b(THROTTLE); // throttle packet[1] = convert_channel_8b(RUDDER)>>1; // rudder - packet[2] = convert_channel_8b(RUDDER)>>1; // elevator + packet[2] = convert_channel_8b(ELEVATOR)>>1; // elevator packet[3] = 0x3f; // no functional implementation in this model, possibly optional aileron channel for 4ch version? packet[5] = (packet_count++ / 3)<<6; packet[4] = (packet[5] == 0x40) ? 0x1a : 0x20; @@ -80,7 +80,7 @@ static void __attribute__((unused)) V761_send_packet() if(Channel_data[CH5] < CHANNEL_MIN_COMMAND) flags = 0x08; // Beginer mode (Gyro on, yaw and pitch rate limited) else - flags = 0x0a; // Midd Mode ( Gyro on no rate limits) + flags = 0x0a; // Mid Mode ( Gyro on no rate limits) packet[5] |= flags; packet[6] = 0x80; // unknown