mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 08:10:34 +08:00
landdetector + mc_pos_control cherry-pick fix
This commit is contained in:
committed by
Lorenz Meier
parent
69ecfef8a4
commit
e6f7af2dcf
@@ -1807,7 +1807,7 @@ MulticopterPositionControl::calculate_thrust_setpoint(float dt)
|
||||
thrust_sp(1) = 0.0f;
|
||||
}
|
||||
|
||||
if (!in_auto_takeoff) {
|
||||
if (!in_auto_takeoff()) {
|
||||
if (_vehicle_land_detected.ground_contact) {
|
||||
/* if still or already on ground command zero xy thrust_sp in body
|
||||
* frame to consider uneven ground */
|
||||
|
||||
Reference in New Issue
Block a user