Skip to content

Commit

Permalink
Copter: remove baro climb rate check from land detector
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Jan 28, 2015
1 parent daac9ba commit a2844c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/land_detector.pde
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static bool land_complete_maybe()
// called at 50hz
static void update_land_detector()
{
bool climb_rate_low = (abs(climb_rate) < LAND_DETECTOR_CLIMBRATE_MAX) && (abs(baro_climbrate) < LAND_DETECTOR_BARO_CLIMBRATE_MAX);
bool climb_rate_low = (abs(climb_rate) < LAND_DETECTOR_CLIMBRATE_MAX);
bool target_climb_rate_low = !pos_control.is_active_z() || (pos_control.get_desired_velocity().z < LAND_SPEED);
bool motor_at_lower_limit = motors.limit.throttle_lower;
bool throttle_low = (FRAME_CONFIG == HELI_FRAME) || (motors.get_throttle_out() < get_non_takeoff_throttle());
Expand Down

0 comments on commit a2844c2

Please sign in to comment.