80,7 → 80,12 |
{ |
signal -= 466; |
// Stabiles Signal |
if((abs(signal - ppm_in[index]) < 6) && okay_cnt > 30) { if(SenderOkay < 200) SenderOkay += 5; else SenderOkay = 200;} |
if((abs(signal - ppm_in[index]) < 6)) |
{ |
if(okay_cnt > 25) { if(SenderOkay < 200) SenderOkay += 10; else SenderOkay = 200;} |
else |
if(okay_cnt > 10) { if(SenderOkay < 200) SenderOkay += 2; else SenderOkay = 200;} |
} |
tmp = (3 * (ppm_in[index]) + signal) / 4; |
if(tmp > signal+1) tmp--; else |
if(tmp < signal-1) tmp++; |
107,6 → 112,7 |
} |
} |
DebugOut.Analog[16] = okay_cnt; |
DebugOut.Analog[17] = PPM_in[2]; |
} |
|
/* |