diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-27 15:45:33 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-27 15:45:33 +0200 |
commit | c74248c8b15af0330e0b76ff0366321bfddda34b (patch) | |
tree | 7de37dc94e44678a852a4112671d0c07f7edbac0 /src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c | |
parent | 84943644d77ce21e91fa60a326ab333069333e74 (diff) | |
parent | 4a949a9565b08bac24130b36bd677d9d08b7cdc8 (diff) | |
download | px4-firmware-c74248c8b15af0330e0b76ff0366321bfddda34b.tar.gz px4-firmware-c74248c8b15af0330e0b76ff0366321bfddda34b.tar.bz2 px4-firmware-c74248c8b15af0330e0b76ff0366321bfddda34b.zip |
Merged mpc_rc with master
Diffstat (limited to 'src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c')
-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)); |