mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 01:50:36 +08:00
constantly reset altitude and yaw setpoint in mc pos control when not in rotary wing mode
This commit is contained in:
committed by
Simon Wilks
parent
f7e4a4852d
commit
9e1713eb9f
@@ -995,7 +995,7 @@ MulticopterPositionControl::task_main()
|
||||
|
||||
/* reset yaw and altitude setpoint for VTOL which are in fw mode */
|
||||
if (_vehicle_status.is_vtol) {
|
||||
if (!_vehicle_status.is_rotary_wing && !_vehicle_status.in_transition_mode) {
|
||||
if (!_vehicle_status.is_rotary_wing) {
|
||||
reset_yaw_sp = true;
|
||||
_reset_alt_sp = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user