Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1226 → Rev 1286

/branches/V0.74d_ACC-HH_MartinR/rc.c
60,7 → 60,8
tmp = (3 * (PPM_in[index]) + signal) / 4;
if(tmp > signal+1) tmp--; else
if(tmp < signal-1) tmp++;
if(SenderOkay >= 195) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3;
//if(SenderOkay >= 195) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3; // MartinR: so war es
if(SenderOkay >= 195) PPM_diff[index] = (tmp - PPM_in[index]); // MartinR: Optimiert
else PPM_diff[index] = 0;
PPM_in[index] = tmp;
}