diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-28 18:39:55 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-28 18:39:55 +0100 |
commit | 48f1b7e1c77a66973c6bb847290018531a99503c (patch) | |
tree | 90b9385e80291a1d74ced45eb2fc33ae8a9ee874 /src/modules | |
parent | 5ffa28b0e950ac3633df61bcfbdb7e2cefec3be4 (diff) | |
download | px4-firmware-48f1b7e1c77a66973c6bb847290018531a99503c.tar.gz px4-firmware-48f1b7e1c77a66973c6bb847290018531a99503c.tar.bz2 px4-firmware-48f1b7e1c77a66973c6bb847290018531a99503c.zip |
mc_pos_control: fill nav_state = NONE when publishing position setpoint triplet
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mc_pos_control/mc_pos_control_main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/mc_pos_control/mc_pos_control_main.cpp b/src/modules/mc_pos_control/mc_pos_control_main.cpp index af2674192..4ff13d4df 100644 --- a/src/modules/mc_pos_control/mc_pos_control_main.cpp +++ b/src/modules/mc_pos_control/mc_pos_control_main.cpp @@ -628,6 +628,7 @@ MulticopterPositionControl::task_main() _pos_sp_triplet.current.valid = true; _pos_sp_triplet.next.valid = true; + _pos_sp_triplet.nav_state = NAV_STATE_NONE; _pos_sp_triplet.current.type = SETPOINT_TYPE_NORMAL; _pos_sp_triplet.current.lat = _lat_sp; _pos_sp_triplet.current.lon = _lon_sp; |