AP_AHRS: use rotateXY for speed

Saves 0.1ms at 100hz
This commit is contained in:
Randy Mackay 2013-07-20 18:00:36 +09:00
parent 537bb04f5f
commit b0c5d9efd0

View File

@ -420,7 +420,7 @@ AP_AHRS_DCM::drift_correction(float deltat)
drift_correction_yaw();
// apply trim
temp_dcm.rotate(_trim);
temp_dcm.rotateXY(_trim);
// rotate accelerometer values into the earth frame
_accel_ef = temp_dcm * _accel_vector;