mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
use control flag to decide if we enable wv or not
This commit is contained in:
@@ -1264,7 +1264,7 @@ MulticopterPositionControl::task_main()
|
||||
}
|
||||
|
||||
/* weather-vane mode for vtol: disable yaw control */
|
||||
if(_mode_auto && _pos_sp_triplet.current.disable_mc_yaw_control == true) {
|
||||
if(!_control_mode.flag_control_manual_enabled && _pos_sp_triplet.current.disable_mc_yaw_control == true) {
|
||||
_att_sp.disable_mc_yaw_control = true;
|
||||
} else {
|
||||
/* reset in case of setpoint updates */
|
||||
|
||||
Reference in New Issue
Block a user