|
|
@ -1828,7 +1828,8 @@ MulticopterPositionControl::calculate_thrust_setpoint(float dt) |
|
|
|
thrust_sp = _R * thrust_sp_body; |
|
|
|
thrust_sp = _R * thrust_sp_body; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (_vehicle_land_detected.maybe_landed) { |
|
|
|
if (_vehicle_land_detected.maybe_landed |
|
|
|
|
|
|
|
&& !(_pos_sp_triplet.current.type == position_setpoint_s::SETPOINT_TYPE_TAKEOFF)) { |
|
|
|
/* 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 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|