Rev 174 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 174 | Rev 175 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | { |
60 | { |
61 | if(index < 10) |
61 | if(index < 10) |
62 | { |
62 | { |
63 | if((signal > 250) && (signal < 687)) |
63 | if((signal > 250) && (signal < 687)) |
64 | { |
64 | { |
65 | signal -= 466; |
65 | // signal -= 466; |
- | 66 | signal -= 526; //für Simprop SAM FM 27.09.07 Steff |
|
66 | // Stabiles Signal |
67 | // Stabiles Signal |
67 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
68 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
68 | tmp = (3 * (PPM_in[index]) + signal) / 4; |
69 | tmp = (3 * (PPM_in[index]) + signal) / 4; |
69 | if(tmp > signal+1) tmp--; else |
70 | if(tmp > signal+1) tmp--; else |
70 | if(tmp < signal-1) tmp++; |
71 | if(tmp < signal-1) tmp++; |