diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-05-29 22:42:33 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-05-29 22:42:33 +0200 |
commit | ead91f325989cda312424ec3b2cc7fd11913f5c8 (patch) | |
tree | c5dfd86d762e5aa844e894a56a653a7a8f52296d /src/modules/position_estimator_inav/position_estimator_inav_params.c | |
parent | 58c9d7a7239942ff2c28babcbf6db90fc95b98b3 (diff) | |
download | px4-firmware-ead91f325989cda312424ec3b2cc7fd11913f5c8.tar.gz px4-firmware-ead91f325989cda312424ec3b2cc7fd11913f5c8.tar.bz2 px4-firmware-ead91f325989cda312424ec3b2cc7fd11913f5c8.zip |
position_estimator_inav: GPS delay compensation
Diffstat (limited to 'src/modules/position_estimator_inav/position_estimator_inav_params.c')
-rw-r--r-- | src/modules/position_estimator_inav/position_estimator_inav_params.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/position_estimator_inav/position_estimator_inav_params.c b/src/modules/position_estimator_inav/position_estimator_inav_params.c index 8aa08b6f2..8509d15cb 100644 --- a/src/modules/position_estimator_inav/position_estimator_inav_params.c +++ b/src/modules/position_estimator_inav/position_estimator_inav_params.c @@ -55,6 +55,7 @@ PARAM_DEFINE_FLOAT(INAV_SONAR_ERR, 0.5f); PARAM_DEFINE_FLOAT(INAV_LAND_T, 3.0f); PARAM_DEFINE_FLOAT(INAV_LAND_DISP, 0.7f); PARAM_DEFINE_FLOAT(INAV_LAND_THR, 0.2f); +PARAM_DEFINE_FLOAT(INAV_DELAY_GPS, 0.1f); int parameters_init(struct position_estimator_inav_param_handles *h) { @@ -73,6 +74,7 @@ int parameters_init(struct position_estimator_inav_param_handles *h) h->land_t = param_find("INAV_LAND_T"); h->land_disp = param_find("INAV_LAND_DISP"); h->land_thr = param_find("INAV_LAND_THR"); + h->delay_gps = param_find("INAV_DELAY_GPS"); return OK; } @@ -94,6 +96,7 @@ int parameters_update(const struct position_estimator_inav_param_handles *h, str param_get(h->land_t, &(p->land_t)); param_get(h->land_disp, &(p->land_disp)); param_get(h->land_thr, &(p->land_thr)); + param_get(h->delay_gps, &(p->delay_gps)); return OK; } |