mirror of https://github.com/ArduPilot/ardupilot
2.0.39
limit RTL to 35° git-svn-id: https://arducopter.googlecode.com/svn/trunk@2983 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a6bad6b73e
commit
4223dff94e
|
@ -168,7 +168,7 @@ static void calc_rate_nav(int speed)
|
|||
//Serial.printf("dTnav: %ld, gs: %d, err: %d, int: %d, pitch: %ld", dTnav, groundspeed, error, (int)g.pid_nav_wp.get_integrator(), (long)nav_lat);
|
||||
|
||||
// limit our output
|
||||
nav_lat = constrain(nav_lat, -4000, 4000); // +- max error
|
||||
nav_lat = constrain(nav_lat, -3500, 3500); // +- max error
|
||||
}
|
||||
|
||||
static void calc_bearing_error()
|
||||
|
|
Loading…
Reference in New Issue