diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-26 15:19:21 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-26 15:19:21 +0200 |
commit | 5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a (patch) | |
tree | 301db980a61f6536339b6a1d699fc43b57aaa84b /src/modules/attitude_estimator_ekf | |
parent | ad1be765bf36a6068fda25e3c62c92e275aebc6b (diff) | |
parent | 4a949a9565b08bac24130b36bd677d9d08b7cdc8 (diff) | |
download | px4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.tar.gz px4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.tar.bz2 px4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.zip |
Merged master into ekf_params
Diffstat (limited to 'src/modules/attitude_estimator_ekf')
-rwxr-xr-x | src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c | 2 |
1 files changed, 2 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..3ff3d9922 100755 --- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c +++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c @@ -40,6 +40,7 @@ */ #include "attitude_estimator_ekf_params.h" +#include <math.h> /* Extended Kalman Filter covariances */ @@ -113,6 +114,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)); |