AC_PosControl: set Alt_Hold filter for PID not just D

We normally don't use the D term here so setting the filter for PID not
just D lets us smooth the throttle response.
This commit is contained in:
Leonard Hall 2016-10-23 17:48:55 +10:30 committed by Randy Mackay
parent 71b5584d17
commit f4605b863c

View File

@ -463,7 +463,7 @@ void AC_PosControl::accel_to_throttle(float accel_target_z)
} }
// set input to PID // set input to PID
_pid_accel_z.set_input_filter_d(_accel_error.z); _pid_accel_z.set_input_filter_all(_accel_error.z);
_pid_accel_z.set_desired_rate(accel_target_z); _pid_accel_z.set_desired_rate(accel_target_z);
// separately calculate p, i, d values for logging // separately calculate p, i, d values for logging