Rev 719 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 719 | Rev 721 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | { |
59 | { |
60 | if(index < 10) |
60 | if(index < 10) |
61 | { |
61 | { |
62 | if((signal > 250) && (signal < 687)) |
62 | if((signal > 250) && (signal < 687)) |
63 | { |
63 | { |
64 | signal -= 466; |
64 | // signal -= 466; |
- | 65 | signal -= 526; // Anpassung fuer Simprop SAM FM 16.02.08 Steff |
|
65 | // Stabiles Signal |
66 | // Stabiles Signal |
66 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
67 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
67 | // tmp = (7 * (PPM_in[index]) + signal) / 8; |
68 | // tmp = (7 * (PPM_in[index]) + signal) / 8; |
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 |