From 86383894fab8d6b62d1b7cbe85708c65fa976cab Mon Sep 17 00:00:00 2001 From: jasonshort Date: Sat, 9 Apr 2011 17:48:03 +0000 Subject: [PATCH] added minimum of 1 meter to alt hold git-svn-id: https://arducopter.googlecode.com/svn/trunk@1859 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/ArduCopterMega.pde | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopterMega/ArduCopterMega.pde b/ArduCopterMega/ArduCopterMega.pde index e6a67cd207..c2046fbf7c 100644 --- a/ArduCopterMega/ArduCopterMega.pde +++ b/ArduCopterMega/ArduCopterMega.pde @@ -990,6 +990,7 @@ void update_current_flight_mode(void) if(g.rc_3.control_in <= 0){ next_WP.alt -= 1; + next_WP.alt = max(next_WP.alt, 100); }else if (g.rc_3.control_in > 700){ next_WP.alt += 1; }