mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-03-15 21:09:10 +00:00
XK2 Gyro off
This commit is contained in:
parent
9e20e47c5a
commit
835facd2c3
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_REVISION 4
|
#define VERSION_REVISION 4
|
||||||
#define VERSION_PATCH_LEVEL 43
|
#define VERSION_PATCH_LEVEL 44
|
||||||
|
|
||||||
#define MODE_SERIAL 0
|
#define MODE_SERIAL 0
|
||||||
|
|
||||||
|
@ -71,9 +71,13 @@ static void __attribute__((unused)) XK2_send_packet()
|
|||||||
}
|
}
|
||||||
//Flags
|
//Flags
|
||||||
packet[5] = GET_FLAG(CH5_SW, 0x01) //Rate
|
packet[5] = GET_FLAG(CH5_SW, 0x01) //Rate
|
||||||
| GET_FLAG(CH6_SW, 0x08) //Mode
|
|
||||||
| GET_FLAG(CH7_SW, 0x20) //Hover
|
| GET_FLAG(CH7_SW, 0x20) //Hover
|
||||||
| GET_FLAG(CH8_SW, 0x40); //Light
|
| 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...
|
//Telemetry not received=00, Telemetry received=01 but sometimes switch to 1 even if telemetry is not there...
|
||||||
packet[6] = 0x00;
|
packet[6] = 0x00;
|
||||||
//RXID checksum
|
//RXID checksum
|
||||||
|
@ -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...).
|
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*
|
### Sub_protocol X4 - *0*
|
||||||
Transmitter: XK X4-A160, X5S, model: XK A160S, XK A280, XK A300
|
Transmitter: XK X4-A160, X5S, model: XK A160S, XK A280, XK A300
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user