mc_pos_control - reduce smooth_velocity_takeoff default threshold, set initial takeoff speed to 0 and remove useless else

This commit is contained in:
bresch
2019-02-08 16:32:18 +01:00
parent e0c48d1d76
commit c0dab47554
@@ -1051,12 +1051,9 @@ MulticopterPositionControl::check_for_smooth_takeoff(const float &z_sp, const fl
// There is a position setpoint above current position or velocity setpoint larger than
// takeoff speed. Enable smooth takeoff.
_in_smooth_takeoff = true;
_takeoff_speed = -0.5f;
_takeoff_speed = 0.f;
_takeoff_reference_z = _states.position(2);
} else {
// Default
_in_smooth_takeoff = false;
}
}
}