diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index 1bad14f..c86d072 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -19,7 +19,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_REVISION 4 -#define VERSION_PATCH_LEVEL 43 +#define VERSION_PATCH_LEVEL 44 #define MODE_SERIAL 0 diff --git a/Multiprotocol/XK2_ccnrf.ino b/Multiprotocol/XK2_ccnrf.ino index 7e5bcd1..0337bcc 100644 --- a/Multiprotocol/XK2_ccnrf.ino +++ b/Multiprotocol/XK2_ccnrf.ino @@ -71,9 +71,13 @@ static void __attribute__((unused)) XK2_send_packet() } //Flags packet[5] = GET_FLAG(CH5_SW, 0x01) //Rate - | GET_FLAG(CH6_SW, 0x08) //Mode | GET_FLAG(CH7_SW, 0x20) //Hover | GET_FLAG(CH8_SW, 0x40); //Light + if(CH6_SW) + packet[5] |= 0x10; //Gyro off (senior mode) + else if(Channel_data[CH6] > CHANNEL_MIN_COMMAND) + packet[5] |= 0x08; //3D + //Telemetry not received=00, Telemetry received=01 but sometimes switch to 1 even if telemetry is not there... packet[6] = 0x00; //RXID checksum diff --git a/Protocols_Details.md b/Protocols_Details.md index 5f518c7..ba3cd29 100644 --- a/Protocols_Details.md +++ b/Protocols_Details.md @@ -1546,6 +1546,8 @@ The plane does not need to be bound each time if it is powered on **after** the The rudder trim is driven from the rudder channel to increase the range (Original TX rudder has no range once the motor has been turned on...). +Mode: -100%=6G, 0%=3D, +100%=Gyro off (Senior mode) + ### Sub_protocol X4 - *0* Transmitter: XK X4-A160, X5S, model: XK A160S, XK A280, XK A300