Skip to content

Commit

Permalink
tau
Browse files Browse the repository at this point in the history
  • Loading branch information
IDV7 committed Jun 1, 2024
1 parent c07e9f4 commit f9916d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/MySrc/Flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void pid_controller_init(pid_handle_t *pid_h, float Kp, float Ki, float Kd, flo
pid_h->gains.Kd = Kd;

pid_h->T = T;
pid_h->tau = 0.000625f; // has to be between 1x and 10x T (T is 0.000625, so between 0.000625 and 0.00625)
pid_h->tau = 0.000625f; // taus is a low pass filter for the D term // has to be between 1x and 10x T (T is 0.000625, so between 0.000625 and 0.00625)
pid_h->limits.min_output = min_output;
pid_h->limits.max_output = max_output;

Expand Down

0 comments on commit f9916d9

Please sign in to comment.