From 069bcbf5e6c135cfe699f0c623138680ff5fb00f Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 10 Dec 2011 19:33:19 -0800 Subject: [PATCH] Made landing slower --- ArduCopter/commands_logic.pde | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArduCopter/commands_logic.pde b/ArduCopter/commands_logic.pde index 44d40dd3e9..0730d82613 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -351,8 +351,8 @@ static bool verify_takeoff() static bool verify_land() { - // land at 1 meter per second - next_WP.alt = original_alt - ((millis() - land_start) / 20); // condition_value = our initial + // land at .62 meter per second + next_WP.alt = original_alt - ((millis() - land_start) / 16); // condition_value = our initial velocity_land = ((old_alt - current_loc.alt) *.2) + (velocity_land * .8); old_alt = current_loc.alt; @@ -372,6 +372,7 @@ static bool verify_land() if(velocity_land <= 0){ land_complete = true; + // commented out to prevent tragedy //return true; } //Serial.printf("N, %d\n", velocity_land);