From c25cef299f7bd2e09062e38cebd94298b331e6e7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 7 Sep 2012 16:56:47 +0200 Subject: Fixed to mag measurement and filter --- apps/px4/attitude_estimator_bm/attitude_estimator_bm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/px4') diff --git a/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c b/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c index 0f6b6044f..45267f315 100644 --- a/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c +++ b/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c @@ -226,7 +226,7 @@ int attitude_estimator_bm_main(int argc, char *argv[]) att.timestamp = sensor_combined_s_local.timestamp; att.roll = euler.x; att.pitch = euler.y; - att.yaw = euler.z - M_PI_F; + att.yaw = euler.z; if (att.yaw > M_PI_F) { att.yaw -= 2.0f * M_PI_F; -- cgit v1.2.3