From a18582673def8af6f68341813867fd079b98e48c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Nov 2013 14:36:25 +1100 Subject: [PATCH] AP_TECS: update for AHRS API change --- libraries/AP_TECS/AP_TECS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_TECS/AP_TECS.cpp b/libraries/AP_TECS/AP_TECS.cpp index 0aa334db9e..b7ae3e3ad4 100644 --- a/libraries/AP_TECS/AP_TECS.cpp +++ b/libraries/AP_TECS/AP_TECS.cpp @@ -176,7 +176,7 @@ void AP_TECS::update_50hz(float hgt_afe) // Get DCM const Matrix3f &rotMat = _ahrs.get_dcm_matrix(); // Calculate speed rate of change - temp = rotMat.c.x * GRAVITY_MSS + _ahrs.get_ins()->get_accel().x; + temp = rotMat.c.x * GRAVITY_MSS + _ahrs.get_ins().get_accel().x; // take 5 point moving average _vel_dot = _vdot_filter.apply(temp); } else {