Skip to content
Snippets Groups Projects
Commit 4692ccf2 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Lorenz Meier
Browse files

mc_pos_control: ignore maybe_landed and ground_contact for takeoff setpoint

parent 03d86054
No related branches found
No related tags found
No related merge requests found
......@@ -1828,7 +1828,8 @@ MulticopterPositionControl::calculate_thrust_setpoint(float dt)
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
* this will help to decide if we are actually landed or not
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment