mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 04:53:33 +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) */
|
/* convert back to local frame (NED) */
|
||||||
thrust_sp = _R * thrust_sp_body;
|
thrust_sp = _R * thrust_sp_body;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_vehicle_land_detected.maybe_landed) {
|
||||||
} else if (_vehicle_land_detected.maybe_landed) {
|
|
||||||
/* we set thrust to zero
|
/* we set thrust to zero
|
||||||
* this will help to decide if we are actually landed or not
|
* this will help to decide if we are actually landed or not
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user