mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
VTOL Standard - Disable pusher-for-pitch strategy in manual control
This commit is contained in:
@@ -356,8 +356,10 @@ void Standard::update_mc_state()
|
||||
_flag_enable_mc_motors = false;
|
||||
}
|
||||
|
||||
// if the thrust scale param is zero then the pusher-for-pitch strategy is disabled and we can return
|
||||
if (_params_standard.forward_thrust_scale < FLT_EPSILON) {
|
||||
// if the thrust scale param is zero or the drone is on manual mode,
|
||||
// then the pusher-for-pitch strategy is disabled and we can return
|
||||
if (_params_standard.forward_thrust_scale < FLT_EPSILON ||
|
||||
!_v_control_mode->flag_control_position_enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user