Skip to content

Commit

Permalink
mc_pos_control - reduce smooth_velocity_takeoff default threshold, se…
Browse files Browse the repository at this point in the history
…t initial takeoff speed to 0 and remove useless else
  • Loading branch information
bresch committed Feb 13, 2019
1 parent e0c48d1 commit c0dab47
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/mc_pos_control/mc_pos_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit c0dab47

Please sign in to comment.