diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-01 13:40:32 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-01 13:40:32 +0400 |
commit | 40d03666fdc037b578400b8e04705ca0f5a1a092 (patch) | |
tree | 03c43ff5b0564cf07eaa35649cc43ed7f6f495b4 /src/modules/mc_pos_control | |
parent | 0f6dcf9e5eeba73b7246b017b436d132297bb3ee (diff) | |
download | px4-firmware-40d03666fdc037b578400b8e04705ca0f5a1a092.tar.gz px4-firmware-40d03666fdc037b578400b8e04705ca0f5a1a092.tar.bz2 px4-firmware-40d03666fdc037b578400b8e04705ca0f5a1a092.zip |
mc_pos_control: yaw in AUTO fixed
Diffstat (limited to 'src/modules/mc_pos_control')
-rw-r--r-- | src/modules/mc_pos_control/mc_pos_control_main.cpp | 2 |
1 files changed, 2 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 df74d1584..c864db7ed 100644 --- a/src/modules/mc_pos_control/mc_pos_control_main.cpp +++ b/src/modules/mc_pos_control/mc_pos_control_main.cpp @@ -619,6 +619,8 @@ MulticopterPositionControl::task_main() _pos_sp(2) -= 0.5f * _params.vel_max(2) / _params.pos_p(2); } + _att_sp.yaw_body = _mission_items.current.yaw; + /* in case of interrupted mission don't go to waypoint but stay at current position */ reset_sp_xy = true; reset_sp_z = true; |