aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-04-19 22:46:06 +0200
committerAnton Babushkin <anton.babushkin@me.com>2014-04-19 22:46:06 +0200
commit3b9bfcc7a20f2bfb0562ee8cf630e8f49cbbdede (patch)
treeff994bb2d8f25f4d0ff89faca4a6af8a19ca5c0e /src/modules/attitude_estimator_ekf
parent0b85c41cd19486e829d48cf9e604fbc25b9e52a6 (diff)
downloadpx4-firmware-3b9bfcc7a20f2bfb0562ee8cf630e8f49cbbdede.tar.gz
px4-firmware-3b9bfcc7a20f2bfb0562ee8cf630e8f49cbbdede.tar.bz2
px4-firmware-3b9bfcc7a20f2bfb0562ee8cf630e8f49cbbdede.zip
attitude_estimator_ekf: use degrees for ATT_MAG_DECL parameter to be consistent with documentation
Diffstat (limited to 'src/modules/attitude_estimator_ekf')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
index 4154e3db4..528ef45fa 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
@@ -113,6 +113,7 @@ int parameters_update(const struct attitude_estimator_ekf_param_handles *h, stru
param_get(h->yaw_off, &(p->yaw_off));
param_get(h->mag_decl, &(p->mag_decl));
+ p->mag_decl *= M_PI / 180.0f;
param_get(h->acc_comp, &(p->acc_comp));