Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1652 → Rev 1653

/trunk/fc.c
1648,10 → 1648,16
if(Mixer.Motor[i][3] == 64) tmp_int += GierMischanteil * 2;
else if(Mixer.Motor[i][3] == -64) tmp_int -= GierMischanteil * 2;
else tmp_int += ((long)GierMischanteil * Mixer.Motor[i][3]) / 32L;
/*
if(tmp_int > tmp_motorwert[i]) tmp_int = (tmp_motorwert[i] + tmp_int) / 2; // MotorSmoothing
else tmp_int = 2 * tmp_int - tmp_motorwert[i]; // MotorSmoothing
 
if(Poti2 > 50)
{
if(tmp_int > tmp_motorwert[i]) tmp_int = (tmp_motorwert[i] + tmp_int) / 2; // MotorSmoothing
else tmp_int = 2 * tmp_int - tmp_motorwert[i]; // MotorSmoothing
else if(Poti2 > 150) tmp_int = 2 * tmp_int - tmp_motorwert[i]; // MotorSmoothing
}
*/
LIMIT_MIN_MAX(tmp_int,MIN_GAS * 8,MAX_GAS * 8);
Motor[i].SetPoint = tmp_int / 8;
Motor[i].SetPointLowerBits = tmp_int % 8;
/trunk/libfc644.a
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream