|
|
|
@ -1102,8 +1102,7 @@ void update_throttle_mode(void)
@@ -1102,8 +1102,7 @@ void update_throttle_mode(void)
|
|
|
|
|
altitude_error = get_altitude_error(); |
|
|
|
|
|
|
|
|
|
// get the AP throttle |
|
|
|
|
nav_throttle = get_nav_throttle(altitude_error);//, 250); //150 = target speed of 1.5m/s |
|
|
|
|
//Serial.printf("in:%d, cr:%d, NT:%d, I:%1.4f\n", g.rc_3.control_in,altitude_error, nav_throttle, g.pi_throttle.get_integrator()); |
|
|
|
|
nav_throttle = get_nav_throttle(altitude_error); |
|
|
|
|
|
|
|
|
|
// clear the new data flag |
|
|
|
|
invalid_throttle = false; |
|
|
|
|