mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-05 04:57:54 +00:00
MJXQ/E010 mod
This commit is contained in:
parent
af7d04fef6
commit
33b5694d35
@ -92,16 +92,11 @@ static void __attribute__((unused)) MJXQ_send_packet(uint8_t bind)
|
|||||||
// Servo_AUX7 AUTOFLIP // X800, X600
|
// Servo_AUX7 AUTOFLIP // X800, X600
|
||||||
switch(sub_protocol)
|
switch(sub_protocol)
|
||||||
{
|
{
|
||||||
case E010:
|
|
||||||
packet[10] = GET_FLAG(Servo_AUX5, 0x01) //HEADLESS
|
|
||||||
| GET_FLAG(Servo_AUX6, 0x02); //RTH
|
|
||||||
if (!bind)
|
|
||||||
packet[14] = GET_FLAG(Servo_AUX1, 0x04); //FLIP
|
|
||||||
break;
|
|
||||||
case H26D:
|
case H26D:
|
||||||
packet[10]=MJXQ_pan_tilt_value();
|
packet[10]=MJXQ_pan_tilt_value();
|
||||||
// fall through on purpose - no break
|
// fall through on purpose - no break
|
||||||
case WLH08:
|
case WLH08:
|
||||||
|
case E010:
|
||||||
packet[10] += GET_FLAG(Servo_AUX6, 0x02) //RTH
|
packet[10] += GET_FLAG(Servo_AUX6, 0x02) //RTH
|
||||||
| GET_FLAG(Servo_AUX5, 0x01); //HEADLESS
|
| GET_FLAG(Servo_AUX5, 0x01); //HEADLESS
|
||||||
if (!bind)
|
if (!bind)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user