mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
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
Block a user