aboutsummaryrefslogtreecommitdiff
path: root/apps/px4
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-07 16:56:47 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-07 16:56:47 +0200
commitc25cef299f7bd2e09062e38cebd94298b331e6e7 (patch)
treef632609bf265de0f041f5226dc4992839acbe3fe /apps/px4
parent297990fe35d0a428ee095b0d8eb1776b58f4472a (diff)
downloadpx4-firmware-c25cef299f7bd2e09062e38cebd94298b331e6e7.tar.gz
px4-firmware-c25cef299f7bd2e09062e38cebd94298b331e6e7.tar.bz2
px4-firmware-c25cef299f7bd2e09062e38cebd94298b331e6e7.zip
Fixed to mag measurement and filter
Diffstat (limited to 'apps/px4')
-rw-r--r--apps/px4/attitude_estimator_bm/attitude_estimator_bm.c2
1 files changed, 1 insertions, 1 deletions
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;