aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-01-06 14:33:58 +0100
committerAnton Babushkin <anton.babushkin@me.com>2014-01-06 14:33:58 +0100
commit63815909979d8b01738a18bd694afcf2bc11c3a3 (patch)
tree5bd91e8e14b3f0c64e9f0cb00a9b654328d70ef1 /src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
parentc094a1a33da61e00bbb2eca2dc8e19b18b1c603a (diff)
downloadpx4-firmware-63815909979d8b01738a18bd694afcf2bc11c3a3.tar.gz
px4-firmware-63815909979d8b01738a18bd694afcf2bc11c3a3.tar.bz2
px4-firmware-63815909979d8b01738a18bd694afcf2bc11c3a3.zip
attitude_estimator_ekf: acc compensation improvements
Diffstat (limited to 'src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c6
1 files changed, 6 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 999446a47..44f47b47c 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_params.c
@@ -68,6 +68,8 @@ PARAM_DEFINE_FLOAT(ATT_YAW_OFF3, 0.0f);
/* magnetic declination, in degrees */
PARAM_DEFINE_FLOAT(ATT_MAG_DECL, 0.0f);
+PARAM_DEFINE_INT32(ATT_ACC_COMP, 0);
+
int parameters_init(struct attitude_estimator_ekf_param_handles *h)
{
/* PID parameters */
@@ -88,6 +90,8 @@ int parameters_init(struct attitude_estimator_ekf_param_handles *h)
h->mag_decl = param_find("ATT_MAG_DECL");
+ h->acc_comp = param_find("ATT_ACC_COMP");
+
return OK;
}
@@ -110,5 +114,7 @@ int parameters_update(const struct attitude_estimator_ekf_param_handles *h, stru
param_get(h->mag_decl, &(p->mag_decl));
+ param_get(h->acc_comp, &(p->acc_comp));
+
return OK;
}