mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-09 23:48:12 +00:00
Failsafe
This commit is contained in:
parent
ed42bf311f
commit
19f879da7f
@ -676,9 +676,10 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
|||||||
[2] Flags
|
[2] Flags
|
||||||
0x01 = Input signal detected
|
0x01 = Input signal detected
|
||||||
0x02 = Serial mode enabled
|
0x02 = Serial mode enabled
|
||||||
0x04 = protocol is valid
|
0x04 = Protocol is valid
|
||||||
0x08 = module is in binding mode
|
0x08 = Module is in binding mode
|
||||||
0x10 = module waits a bind event to load the protocol
|
0x10 = Module waits a bind event to load the protocol
|
||||||
|
0x20 = Failsafe supported by currently running protocol
|
||||||
[3] major
|
[3] major
|
||||||
[4] minor
|
[4] minor
|
||||||
[5] revision
|
[5] revision
|
||||||
|
@ -109,6 +109,9 @@ static void multi_send_status()
|
|||||||
else
|
else
|
||||||
if (!IS_BIND_DONE_on)
|
if (!IS_BIND_DONE_on)
|
||||||
flags |= 0x08;
|
flags |= 0x08;
|
||||||
|
//Failsafe supported
|
||||||
|
if((protocol==MODE_HISKY && sub_protocol==HK310) || protocol==MODE_DEVO || protocol==MODE_SFHSS || protocol==MODE_WK2x01 || protocol==MODE_AFHDS2A) //|| protocol==MODE_FRSKYX)
|
||||||
|
flags |= 0x20;
|
||||||
}
|
}
|
||||||
Serial_write(flags);
|
Serial_write(flags);
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@
|
|||||||
/*** FAILSAFE SETTINGS ***/
|
/*** FAILSAFE SETTINGS ***/
|
||||||
/**************************/
|
/**************************/
|
||||||
//The module is using the same default failsafe values for all protocols which currently supports it:
|
//The module is using the same default failsafe values for all protocols which currently supports it:
|
||||||
// Devo, SFHSS and AFHDS2A
|
// Devo, WK2x01, SFHSS, HISKY/HK310 and AFHDS2A
|
||||||
//All channels are centered except throttle which is forced low.
|
//All channels are centered except throttle which is forced low.
|
||||||
//If you want to diasble failsafe globally comment the line below using "//".
|
//If you want to diasble failsafe globally comment the line below using "//".
|
||||||
#define FAILSAFE_ENABLE
|
#define FAILSAFE_ENABLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user