mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 05:13:34 +08:00
VTOL: rework forward actuation assist
-allow positive pitch offsets in hover -add param for min pitch during LAND Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
f0de88fada
commit
4e3fa7cf35
@@ -483,6 +483,6 @@ float Tiltrotor::thrust_compensation_for_tilt()
|
||||
// only compensate for tilt angle up to 0.5 * max tilt
|
||||
float compensated_tilt = math::constrain(_tilt_control, 0.0f, 0.5f);
|
||||
|
||||
// increase vertical thrust by 1/cos(tilt), limmit to [-1,0]
|
||||
// increase vertical thrust by 1/cos(tilt), limit to [-1,0]
|
||||
return math::constrain(_v_att_sp->thrust_body[2] / cosf(compensated_tilt * M_PI_2_F), -1.0f, 0.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user