added minimum of 1 meter to alt hold

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1859 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-04-09 17:48:03 +00:00
parent b2f356d176
commit 86383894fa
1 changed files with 1 additions and 0 deletions

View File

@ -990,6 +990,7 @@ void update_current_flight_mode(void)
if(g.rc_3.control_in <= 0){ if(g.rc_3.control_in <= 0){
next_WP.alt -= 1; next_WP.alt -= 1;
next_WP.alt = max(next_WP.alt, 100);
}else if (g.rc_3.control_in > 700){ }else if (g.rc_3.control_in > 700){
next_WP.alt += 1; next_WP.alt += 1;
} }