mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 02:17:35 +08:00
More comments
This commit is contained in:
@@ -76,6 +76,7 @@ void ECL_MCAttControlVector::control(float dt, const math::Dcm &R_nb, float yaw,
|
||||
|
||||
// desired thrust in body frame
|
||||
// avoid division by zero
|
||||
// compensates for thrust loss due to roll/pitch
|
||||
if (F_des(2) >= 0.1f) {
|
||||
thrust = F_des(2) / R_bn(2, 2);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user