|
|
|
@ -269,11 +269,7 @@ bool ModeThrow::throw_detected()
@@ -269,11 +269,7 @@ bool ModeThrow::throw_detected()
|
|
|
|
|
bool throw_condition_confirmed = ((AP_HAL::millis() - free_fall_start_ms < 500) && ((inertial_nav.get_velocity().z - free_fall_start_velz) < -250.0f)); |
|
|
|
|
|
|
|
|
|
// start motors and enter the control mode if we are in continuous freefall
|
|
|
|
|
if (throw_condition_confirmed) { |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return throw_condition_confirmed; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool ModeThrow::throw_attitude_good() |
|
|
|
|