Rev 2031 | Rev 2050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2031 | Rev 2034 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | if(!(sBusBuffer[23] & 4)) // This Bit contains the 'Signal loss' |
109 | if(!(sBusBuffer[23] & 4)) // This Bit contains the 'Signal loss' |
110 | { |
110 | { |
111 | TIMSK1 &= ~_BV(ICIE1); // disable PPM-Input |
111 | TIMSK1 &= ~_BV(ICIE1); // disable PPM-Input |
112 | if(EE_Parameter.FailsafeChannel == 0 || PPM_in[EE_Parameter.FailsafeChannel] < 100) // forces Failsafe if the receiver doesn't have 'signal loss' on Failsafe |
112 | if(EE_Parameter.FailsafeChannel == 0 || PPM_in[EE_Parameter.FailsafeChannel] < 100) // forces Failsafe if the receiver doesn't have 'signal loss' on Failsafe |
113 | { |
113 | { |
114 | if(SenderOkay < 200) SenderOkay += 10; else SenderOkay = 200; |
114 | if(SenderOkay < 200) SenderOkay += 20; else SenderOkay = 200; |
115 | } |
115 | } |
116 | signal = sBusBuffer[1]; |
116 | signal = sBusBuffer[1]; |
117 | if(!load--) { process = (12*11 - 8); load = 2;} else process = (4*11 - 8); // lowers the processor load |
117 | if(!load--) { process = (12*11 - 8); load = 2;} else process = (4*11 - 8); // lowers the processor load |
118 | for(i = 0; i < process; i++) // collect the single bits |
118 | for(i = 0; i < process; i++) // collect the single bits |
119 | { |
119 | { |