mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:48:11 +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
|
||||
0x01 = Input signal detected
|
||||
0x02 = Serial mode enabled
|
||||
0x04 = protocol is valid
|
||||
0x08 = module is in binding mode
|
||||
0x10 = module waits a bind event to load the protocol
|
||||
0x04 = Protocol is valid
|
||||
0x08 = Module is in binding mode
|
||||
0x10 = Module waits a bind event to load the protocol
|
||||
0x20 = Failsafe supported by currently running protocol
|
||||
[3] major
|
||||
[4] minor
|
||||
[5] revision
|
||||
|
@ -109,6 +109,9 @@ static void multi_send_status()
|
||||
else
|
||||
if (!IS_BIND_DONE_on)
|
||||
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);
|
||||
|
||||
|
@ -159,7 +159,7 @@
|
||||
/*** FAILSAFE SETTINGS ***/
|
||||
/**************************/
|
||||
//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.
|
||||
//If you want to diasble failsafe globally comment the line below using "//".
|
||||
#define FAILSAFE_ENABLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user