mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 20:10:35 +08:00
mc_pos_control: change if to else if
This commit is contained in:
committed by
Lorenz Meier
parent
f75dd37326
commit
8a76bd07d0
@@ -1834,9 +1834,9 @@ MulticopterPositionControl::calculate_thrust_setpoint(float dt)
|
||||
|
||||
/* convert back to local frame (NED) */
|
||||
thrust_sp = _R * thrust_sp_body;
|
||||
}
|
||||
|
||||
|
||||
} else if (_vehicle_land_detected.maybe_landed) {
|
||||
if (_vehicle_land_detected.maybe_landed) {
|
||||
/* we set thrust to zero
|
||||
* this will help to decide if we are actually landed or not
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user