mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mc_pos_control: change if to else if
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user