From 8e663f2531bf410beb0d5032a32448a34dc18534 Mon Sep 17 00:00:00 2001 From: rdba2k <90289517+rdba2k@users.noreply.github.com> Date: Thu, 18 Jan 2024 03:07:34 -0800 Subject: [PATCH] Update V911S_ccnrf.ino to add 6G/Senior and light for XK A280 (#929) --- Multiprotocol/V911S_ccnrf.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Multiprotocol/V911S_ccnrf.ino b/Multiprotocol/V911S_ccnrf.ino index 665d67a..2900a33 100644 --- a/Multiprotocol/V911S_ccnrf.ino +++ b/Multiprotocol/V911S_ccnrf.ino @@ -35,6 +35,8 @@ // flags going to packet[2] #define V911S_FLAG_CALIB 0x01 #define A220_FLAG_6G3D 0x04 +#define A280_FLAG_6GSENIOR 0x08 +#define A280_FLAG_LIGHT 0x20 static void __attribute__((unused)) V911S_send_packet() { @@ -74,7 +76,9 @@ static void __attribute__((unused)) V911S_send_packet() { packet[ 1]=GET_FLAG(!CH6_SW,E119_FLAG_EXPERT) // short press on left button |GET_FLAG( CH5_SW,E119_FLAG_CALIB); // short press on right button - packet[ 2]=GET_FLAG( CH7_SW,A220_FLAG_6G3D); // short press on right button + packet[ 2]=GET_FLAG( CH7_SW,A220_FLAG_6G3D) // short press on right button + |GET_FLAG( CH8_SW,A280_FLAG_6GSENIOR) // -100% - 6G, +100% - Senior mode (turn off gyro) + |GET_FLAG( CH9_SW,A280_FLAG_LIGHT); // cycle the light through on-flash-off when the CH9 value is changed from -100% to 100% } //packet[3..6]=trims TAER signed