mirror of https://github.com/ArduPilot/ardupilot
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:
parent
b2f356d176
commit
86383894fa
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue