diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-02-02 23:07:48 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-02-02 23:07:48 +0100 |
commit | 21300874ac6d337d85c49704e9233fdd17192171 (patch) | |
tree | 256e4f4dab90511f19ba9ab6aaf98b8b38db3bd4 | |
parent | dfd4dc3e6a8dfea24b2ab42b18741b71eb025596 (diff) | |
download | px4-firmware-21300874ac6d337d85c49704e9233fdd17192171.tar.gz px4-firmware-21300874ac6d337d85c49704e9233fdd17192171.tar.bz2 px4-firmware-21300874ac6d337d85c49704e9233fdd17192171.zip |
mc_att_control: reset yaw setpoint after ACRO
-rw-r--r-- | src/modules/mc_att_control/mc_att_control_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mc_att_control/mc_att_control_main.cpp b/src/modules/mc_att_control/mc_att_control_main.cpp index 21e101662..77531cbb9 100644 --- a/src/modules/mc_att_control/mc_att_control_main.cpp +++ b/src/modules/mc_att_control/mc_att_control_main.cpp @@ -802,6 +802,8 @@ MulticopterAttitudeControl::task_main() _rates_sp = _rates_sp.edivide(_params.rc_scale).emult(_params.scale_acro); _thrust_sp = _manual_control_sp.throttle; + _reset_yaw_sp = true; + /* publish attitude rates setpoint */ _v_rates_sp.roll = _rates_sp(0); _v_rates_sp.pitch = _rates_sp(1); |