Update E119 channels and flags

Default is high rate
CH5 is calib
This commit is contained in:
Pascal Langer
2020-02-16 20:18:02 +01:00
parent 693f9f58eb
commit 68a6af0eb5
2 changed files with 7 additions and 12 deletions

View File

@@ -30,8 +30,8 @@
// flags going to packet[1]
#define V911S_FLAG_EXPERT 0x04
#define E119_FLAG_1 0x08
#define E119_FLAG_2 0x40
#define E119_FLAG_EXPERT 0x08
#define E119_FLAG_CALIB 0x40
// flags going to packet[2]
#define V911S_FLAG_CALIB 0x01
@@ -70,8 +70,8 @@ static void __attribute__((unused)) V911S_send_packet(uint8_t bind)
packet[ 2]=GET_FLAG(CH5_SW,V911S_FLAG_CALIB); // long press on right button
}
else
packet[ 1]=GET_FLAG(CH5_SW,E119_FLAG_1) // short press on left button
|GET_FLAG(CH6_SW,E119_FLAG_2); // short press on right button
packet[ 1]=E119_FLAG_EXPERT // short press on left button
|GET_FLAG(CH5_SW,E119_FLAG_CALIB); // short press on right button
//packet[3..6]=trims TAER signed
uint16_t ch=convert_channel_16b_limit(THROTTLE ,0,0x7FF);