diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-09-02 23:30:32 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-09-02 23:30:32 +0200 |
commit | 40e18948727b41843fc0766e520f92b8cc841296 (patch) | |
tree | 47d251f6d5898815f46f97926a94b8dc567e2cb9 /src/modules/multirotor_pos_control/multirotor_pos_control_params.c | |
parent | 193a52d8132ce03aa0de9547f77ca8aeb67220f1 (diff) | |
download | px4-firmware-40e18948727b41843fc0766e520f92b8cc841296.tar.gz px4-firmware-40e18948727b41843fc0766e520f92b8cc841296.tar.bz2 px4-firmware-40e18948727b41843fc0766e520f92b8cc841296.zip |
Added parameter NAV_TAKEOFF_GAP
Diffstat (limited to 'src/modules/multirotor_pos_control/multirotor_pos_control_params.c')
-rw-r--r-- | src/modules/multirotor_pos_control/multirotor_pos_control_params.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/multirotor_pos_control/multirotor_pos_control_params.c b/src/modules/multirotor_pos_control/multirotor_pos_control_params.c index 4d6511851..bf9578ea3 100644 --- a/src/modules/multirotor_pos_control/multirotor_pos_control_params.c +++ b/src/modules/multirotor_pos_control/multirotor_pos_control_params.c @@ -60,6 +60,7 @@ PARAM_DEFINE_FLOAT(MPC_TILT_MAX, 0.5f); int parameters_init(struct multirotor_position_control_param_handles *h) { h->takeoff_alt = param_find("NAV_TAKEOFF_ALT"); + h->takeoff_gap = param_find("NAV_TAKEOFF_GAP"); h->thr_min = param_find("MPC_THR_MIN"); h->thr_max = param_find("MPC_THR_MAX"); h->z_p = param_find("MPC_Z_P"); @@ -85,7 +86,8 @@ int parameters_init(struct multirotor_position_control_param_handles *h) int parameters_update(const struct multirotor_position_control_param_handles *h, struct multirotor_position_control_params *p) { - param_get(h->takeoff_alt,&(p->takeoff_alt)); + param_get(h->takeoff_alt, &(p->takeoff_alt)); + param_get(h->takeoff_gap, &(p->takeoff_gap)); param_get(h->thr_min, &(p->thr_min)); param_get(h->thr_max, &(p->thr_max)); param_get(h->z_p, &(p->z_p)); |