mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_AHRS: use rotateXY for speed
Saves 0.1ms at 100hz
This commit is contained in:
parent
537bb04f5f
commit
b0c5d9efd0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user