mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:53:33 +08:00
allow pusher for pitch strategy to be turned off by setting thrust scal param to zero
This commit is contained in:
@@ -293,6 +293,11 @@ void Standard::update_mc_state()
|
||||
{
|
||||
VtolType::update_mc_state();
|
||||
|
||||
// if the thrust scale param is zero then the pusher-for-pitch strategy is disabled and we can return
|
||||
if (_params_standard.forward_thurst_scale < FLT_EPSILON) {
|
||||
return;
|
||||
}
|
||||
|
||||
// get projection of thrust vector on body x axis. This is used to
|
||||
// determine the desired forward acceleration which we want to achieve with the pusher
|
||||
math::Matrix<3,3> R(&_v_att->R[0]);
|
||||
|
||||
Reference in New Issue
Block a user