AP_AHRS: added get_yaw_rate_earth()

used to estimate course correction on takeoff
This commit is contained in:
Andrew Tridgell 2014-10-07 07:15:19 +11:00
parent 41ce8c2abd
commit 809b6cc855

View File

@ -160,6 +160,9 @@ public:
// accelerometer values in the earth frame in m/s/s
const Vector3f &get_accel_ef(void) const { return _accel_ef[_ins.get_primary_accel()]; }
// get yaw rate in earth frame in radians/sec
float get_yaw_rate_earth(void) const { return get_gyro() * get_dcm_matrix().c; }
// Methods
virtual void update(void) = 0;