/trunk/fc.c |
---|
1672,9 → 1672,9 |
else tmp_int = 2 * tmp_int - tmp_motorwert[i]; // MotorSmoothing |
} |
LIMIT_MIN_MAX(tmp_int,MIN_GAS * 4,MAX_GAS * 4);test |
LIMIT_MIN_MAX(tmp_int,MIN_GAS * 4,MAX_GAS * 4); |
Motor[i].SetPoint = tmp_int / 4; |
Motor[i].SetPointLowerBits = tmp_int % 4; |
Motor[i].SetPointLowerBits = (tmp_int % 4)<<1; // (3 bits total) |
tmp_motorwert[i] = tmp_int; |
} |
else |