mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Copter: remove setting rate and thr D term filters
This commit is contained in:
parent
29ca7a10df
commit
db000f2287
@ -561,10 +561,6 @@
|
|||||||
// Rate controller gains
|
// Rate controller gains
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef RATE_PID_DTERM_FILTER
|
|
||||||
# define RATE_PID_DTERM_FILTER 20 // D-term filter rate cutoff frequency. Used for Roll, Pitch and Yaw Rate PID controllers.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef RATE_ROLL_P
|
#ifndef RATE_ROLL_P
|
||||||
# define RATE_ROLL_P 0.150f
|
# define RATE_ROLL_P 0.150f
|
||||||
#endif
|
#endif
|
||||||
@ -702,11 +698,6 @@
|
|||||||
# define THROTTLE_ACCEL_IMAX 500
|
# define THROTTLE_ACCEL_IMAX 500
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef THROTTLE_ACCEL_DTERM_FILTER
|
|
||||||
# define THROTTLE_ACCEL_DTERM_FILTER 20
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Dataflash logging control
|
// Dataflash logging control
|
||||||
//
|
//
|
||||||
|
@ -231,10 +231,6 @@ static void init_ardupilot()
|
|||||||
// initialise attitude and position controllers
|
// initialise attitude and position controllers
|
||||||
attitude_control.set_dt(MAIN_LOOP_SECONDS);
|
attitude_control.set_dt(MAIN_LOOP_SECONDS);
|
||||||
pos_control.set_dt(MAIN_LOOP_SECONDS);
|
pos_control.set_dt(MAIN_LOOP_SECONDS);
|
||||||
g.pid_rate_roll.set_d_lpf_alpha(RATE_PID_DTERM_FILTER, MAIN_LOOP_SECONDS);
|
|
||||||
g.pid_rate_pitch.set_d_lpf_alpha(RATE_PID_DTERM_FILTER, MAIN_LOOP_SECONDS);
|
|
||||||
g.pid_rate_yaw.set_d_lpf_alpha(RATE_PID_DTERM_FILTER, MAIN_LOOP_SECONDS);
|
|
||||||
g.pid_throttle_accel.set_d_lpf_alpha(THROTTLE_ACCEL_DTERM_FILTER, MAIN_LOOP_SECONDS);
|
|
||||||
|
|
||||||
// init the optical flow sensor
|
// init the optical flow sensor
|
||||||
if(g.optflow_enabled) {
|
if(g.optflow_enabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user