mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-09 23:08:12 +00:00
Compare commits
2 Commits
54ae77ed7f
...
dd82cbec63
Author | SHA1 | Date | |
---|---|---|---|
|
dd82cbec63 | ||
|
be4595fe67 |
@ -143,12 +143,12 @@ static void __attribute__((unused)) FX_send_packet()
|
|||||||
|
|
||||||
//Check
|
//Check
|
||||||
uint8_t last_packet_idx = packet_length-1;
|
uint8_t last_packet_idx = packet_length-1;
|
||||||
if (sub_protocol == FX9630 && IS_BIND_IN_PROGRESS)
|
if (sub_protocol >= FX9630 && IS_BIND_IN_PROGRESS)
|
||||||
last_packet_idx--;
|
last_packet_idx--;
|
||||||
val=0;
|
val=0;
|
||||||
for(uint8_t i=0;i<last_packet_idx;i++)
|
for(uint8_t i=0;i<last_packet_idx;i++)
|
||||||
val+=packet[i];
|
val+=packet[i];
|
||||||
if (sub_protocol == FX9630)
|
if (sub_protocol >= FX9630)
|
||||||
val = val ^ 0xFF;
|
val = val ^ 0xFF;
|
||||||
packet[last_packet_idx]=val;
|
packet[last_packet_idx]=val;
|
||||||
|
|
||||||
|
@ -1754,6 +1754,8 @@ A|E|T|R|FLIP|GYRO|LEDs
|
|||||||
|
|
||||||
FLIP and LEDs are toggle channels meaning that -100% to +100% is a command and +100% to -100% is also a command
|
FLIP and LEDs are toggle channels meaning that -100% to +100% is a command and +100% to -100% is also a command
|
||||||
|
|
||||||
|
Gyro: -100%=6G, 0%=3D+Gyro, +100%=3D
|
||||||
|
|
||||||
## FY326 - *20*
|
## FY326 - *20*
|
||||||
|
|
||||||
### Sub_protocol FY326 - *0*
|
### Sub_protocol FY326 - *0*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user