mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: fixed jump in qhover on takeoff
Z controller PID is from -1 to 1 thanks to Leonard for spotting this
This commit is contained in:
parent
b9debba509
commit
06b0742481
@ -752,7 +752,7 @@ void QuadPlane::run_z_controller(void)
|
||||
// controller. We need to assume the integrator may be way off
|
||||
|
||||
// the base throttle we start at is the current throttle we are using
|
||||
float base_throttle = constrain_float(motors->get_throttle() - motors->get_throttle_hover(), 0, 1) * 1000;
|
||||
float base_throttle = constrain_float(motors->get_throttle() - motors->get_throttle_hover(), -1, 1) * 1000;
|
||||
pid_accel_z.set_integrator(base_throttle);
|
||||
|
||||
last_pidz_init_ms = now;
|
||||
|
Loading…
Reference in New Issue
Block a user