Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2032 → Rev 2035

/branches/dongfang_FC_rewrite/flight.c
424,11 → 424,11
// if (i < 4) debugOut.analog[22 + i] = throttle;
 
if ((MKFlags & MKFLAG_MOTOR_RUN) && mixerMatrix.motor[i][MIX_THROTTLE] > 0) {
motor[i].SetPoint = throttle;
motor[i].throttle = throttle;
} else if (motorTestActive) {
motor[i].SetPoint = motorTest[i];
motor[i].throttle = motorTest[i];
} else {
motor[i].SetPoint = 0;
motor[i].throttle = 0;
}
}
 
442,7 → 442,5
debugOut.analog[0] = (10 * angle[PITCH]) / GYRO_DEG_FACTOR_PITCHROLL; // in 0.1 deg
debugOut.analog[1] = (10 * angle[ROLL]) / GYRO_DEG_FACTOR_PITCHROLL; // in 0.1 deg
debugOut.analog[2] = yawGyroHeading / GYRO_DEG_FACTOR_YAW;
 
debugOut.analog[16] = gyroPFactor;
}
}