Rev 842 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 842 | Rev 852 | ||
---|---|---|---|
Line 61... | Line 61... | ||
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 | ||
- | 67 | // if (index == EE_Parameter.Kanalbelegung[K_GAS] ) signal = -signal; //invertiere GAS |
|
- | 68 | // if (index == EE_Parameter.Kanalbelegung[K_GIER] ) signal = -signal; //invertiere GIER |
|
- | 69 | // if (index == EE_Parameter.Kanalbelegung[K_NICK] ) signal = -signal; //invertiere NICK |
|
- | 70 | // if (index == EE_Parameter.Kanalbelegung[K_ROLL] ) signal = -signal; //invertiere ROLL |
|
- | 71 | ||
66 | // Stabiles Signal |
72 | // Stabiles Signal |
67 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
73 | if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
68 | // tmp = (7 * (PPM_in[index]) + signal) / 8; |
74 | // tmp = (7 * (PPM_in[index]) + signal) / 8; |
69 | tmp = (3 * (PPM_in[index]) + signal) / 4; |
75 | tmp = (3 * (PPM_in[index]) + signal) / 4; |
70 | if(tmp > signal+1) tmp--; else |
76 | if(tmp > signal+1) tmp--; else |