Subversion Repositories FlightCtrl

Rev

Rev 2309 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2309 Rev 2438
Line 164... Line 164...
164
                if(EE_Parameter.FailsafeChannel == 0 || PPM_in[EE_Parameter.FailsafeChannel] < 100)  // forces Failsafe if the receiver doesn't have 'signal loss' on Failsafe
164
                if(EE_Parameter.FailsafeChannel == 0 || PPM_in[EE_Parameter.FailsafeChannel] < 100)  // forces Failsafe if the receiver doesn't have 'signal loss' on Failsafe
165
                  {
165
                  {
166
                    if(SenderOkay < 200) SenderOkay += 20; else SenderOkay = 200;
166
                    if(SenderOkay < 200) SenderOkay += 20; else SenderOkay = 200;
167
                  }
167
                  }
168
                signal = sBusBuffer[1];
168
                signal = sBusBuffer[1];
169
        if(!load--) { process = (12*11 - 8); load = 2;} else process = (4*11 - 8);  // lowers the processor load 
169
        if(!load--) { process = (16*11 - 8); load = 2;} else process = (4*11 - 8);  // lowers the processor load 
170
                for(i = 0; i < process; i++)  // collect the single bits
170
                for(i = 0; i < process; i++)  // collect the single bits
171
                {
171
                {
172
                        if(sBusBuffer[sbyte] & bitmask8) signal |= bitmask11;
172
                        if(sBusBuffer[sbyte] & bitmask8) signal |= bitmask11;
173
                        bitmask8 *= 2;
173
                        bitmask8 *= 2;
174
                        if(!bitmask8)
174
                        if(!bitmask8)
Line 193... Line 193...
193
                }
193
                }
194
            NewPpmData = 0;  // Null bedeutet: Neue Daten
194
            NewPpmData = 0;  // Null bedeutet: Neue Daten
195
           }
195
           }
196
 NewSBusData = 0;
196
 NewSBusData = 0;
197
}
197
}
198
 
-
 
199
#endif
198
#endif
-
 
199