E016H: Calibration on channel 8

This commit is contained in:
Pascal Langer 2020-12-19 12:16:51 +01:00
parent b94f774f80
commit e79ca9b7d7
4 changed files with 15 additions and 8 deletions

View File

@ -178,4 +178,4 @@
52,0,ZSX,280,1,Light 52,0,ZSX,280,1,Light
78,0,M-Link,Std,0,CH5,CH6,CH7,CH8,CH9,CH10,CH11,CH12,CH13,CH14,CH15,CH16 78,0,M-Link,Std,0,CH5,CH6,CH7,CH8,CH9,CH10,CH11,CH12,CH13,CH14,CH15,CH16
79,0,WFLY2,RF20x,0,CH5,CH6,CH7,CH8,CH9,CH10 79,0,WFLY2,RF20x,0,CH5,CH6,CH7,CH8,CH9,CH10
80,0,E016Hv2,E016Hv2,1,TakLan,EmStop,Flip,HLess,RTH 80,0,E016Hv2,E016Hv2,1,TakLan,EmStop,Flip,Calib,HLess,RTH

View File

@ -71,9 +71,14 @@ static void __attribute__((unused)) E016HV2_send_packet()
packet[7 ] = channel; packet[7 ] = channel;
//flags //flags
if(CH8_SW && !phase) //toggle calib flag
flags ^= 0x40;
phase=CH8_SW;
packet[8 ] = GET_FLAG(CH7_SW, 0x01) // 0x01=Flip packet[8 ] = GET_FLAG(CH7_SW, 0x01) // 0x01=Flip
| GET_FLAG(CH8_SW, 0x02) // 0x02=Headless | GET_FLAG(CH9_SW, 0x02) // 0x02=Headless
| GET_FLAG(CH9_SW, 0x04); // 0x04=One Key Return | GET_FLAG(CH10_SW, 0x04) // 0x04=One Key Return
| flags; // 0x40=Calib
packet[9 ] = 0x02; // Speed control 0x00:low, 0x01:medium, 0x02:high packet[9 ] = 0x02; // Speed control 0x00:low, 0x01:medium, 0x02:high
@ -154,6 +159,8 @@ uint16_t initE016HV2()
rf_ch_num-=2; rf_ch_num-=2;
} }
phase=CH8_SW;
flags=0;
bind_counter = E016HV2_BIND_COUNT; bind_counter = E016HV2_BIND_COUNT;
BIND_IN_PROGRESS; // Autobind protocol BIND_IN_PROGRESS; // Autobind protocol
return E016HV2_INITIAL_WAIT; return E016HV2_INITIAL_WAIT;

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 1 #define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 91 #define VERSION_PATCH_LEVEL 92
//****************** //******************
// Protocols // Protocols

View File

@ -382,9 +382,9 @@ Check the [Frequency Tuning page](/docs/Frequency_Tuning.md) to determine it.
**Again make sure to set the RF frequency right to be able to bind**. FYI, on my module I needed +80. **Again make sure to set the RF frequency right to be able to bind**. FYI, on my module I needed +80.
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8 CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10
---|---|---|---|---|---|---|--- ---|---|---|---|---|---|---|---|---|----
A|E|T|R|TAKE_OFF/LANDING|EMERGENCY|FLIP|HEADLESS|RTH A|E|T|R|TAKE_OFF/LANDING|EMERGENCY|FLIP|CALIB|HEADLESS|RTH
TAKE_OFF/LANDING: this is a momentary switch to arm the motors or land the quad. This switch is not really needed as you can start the quad with throttle low then increase throttle until the motor arms and continue to increase to lift off; To land just bring throttle all the way down, the quad will just stops when touching the ground. TAKE_OFF/LANDING: this is a momentary switch to arm the motors or land the quad. This switch is not really needed as you can start the quad with throttle low then increase throttle until the motor arms and continue to increase to lift off; To land just bring throttle all the way down, the quad will just stops when touching the ground.