From 293018468095f634d9af0d3c82a9728ff112b3af Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Nov 2013 14:35:44 +1100 Subject: [PATCH] AP_YawController: update for AHRS API change --- libraries/APM_Control/AP_YawController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/APM_Control/AP_YawController.cpp b/libraries/APM_Control/AP_YawController.cpp index b80049df33..ee3f2c39ba 100644 --- a/libraries/APM_Control/AP_YawController.cpp +++ b/libraries/APM_Control/AP_YawController.cpp @@ -106,7 +106,7 @@ int32_t AP_YawController::get_servo_out(float scaler, bool disable_integrator) float omega_z = _ahrs.get_gyro().z; // Get the accln vector (m/s^2) - float accel_y = _ahrs.get_ins()->get_accel().y; + float accel_y = _ahrs.get_ins().get_accel().y; // Subtract the steady turn component of rate from the measured rate // to calculate the rate relative to the turn requirement in degrees/sec