Rev 1377 | Rev 1419 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1377 | Rev 1391 | ||
---|---|---|---|
Line 267... | Line 267... | ||
267 | Channel = ((unsigned int)ByteHigh << 8) | c; |
267 | Channel = ((unsigned int)ByteHigh << 8) | c; |
268 | signal = Channel & 0x3ff; |
268 | signal = Channel & 0x3ff; |
269 | signal -= 0x200; // Offset, range 0x000..0x3ff? |
269 | signal -= 0x200; // Offset, range 0x000..0x3ff? |
270 | signal = signal/3; // scaling to fit PPM resolution |
270 | signal = signal/3; // scaling to fit PPM resolution |
Line 271... | Line 271... | ||
271 | 271 | ||
272 | if(index >= 0 && index <= 13) |
272 | if(index > 0 && index < 13) |
273 | { |
273 | { |
274 | // Stabiles Signal |
274 | // Stabiles Signal |
275 | if(abs(signal - PPM_in[index]) < 6) |
275 | if(abs(signal - PPM_in[index]) < 6) |
276 | { |
276 | { |