mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 17:13:35 +08:00
vtol_att_control: apply multicopter takeoff hotfix also for vtol (#12250)
Please see reference: https://github.com/PX4/Firmware/issues/12171
This commit is contained in:
committed by
Daniel Agar
parent
ae6fed4f29
commit
048cca7bc4
@@ -358,7 +358,7 @@ MulticopterAttitudeControl::control_attitude()
|
||||
{
|
||||
_v_att_sp_sub.update(&_v_att_sp);
|
||||
|
||||
// reinitialize the setpoint while not armed to make sure no value from the last flight is still kept
|
||||
// reinitialize the setpoint while not armed to make sure no value from the last mode or flight is still kept
|
||||
if (!_v_control_mode.flag_armed) {
|
||||
Quatf().copyTo(_v_att_sp.q_d);
|
||||
Vector3f().copyTo(_v_att_sp.thrust_body);
|
||||
|
||||
Reference in New Issue
Block a user