Browse Source

AP_AHRS: Fixed DCM get_gyro function

Previously incorporated the attitude correction terms into the return. Now only returns the drift-corrected gyro.
mission-4.1.18
Jonathan Challinger 11 years ago committed by Andrew Tridgell
parent
commit
61987f6655
  1. 2
      libraries/AP_AHRS/AP_AHRS_DCM.h

2
libraries/AP_AHRS/AP_AHRS_DCM.h

@ -40,7 +40,7 @@ public: @@ -40,7 +40,7 @@ public:
// return the smoothed gyro vector corrected for drift
const Vector3f get_gyro(void) const {
return _omega + _omega_P + _omega_yaw_P;
return _omega;
}
// return rotation matrix representing rotaton from body to earth axes

Loading…
Cancel
Save