1
Fork 0

initial pidf tunings

This commit is contained in:
Andy Killorin 2024-10-24 13:03:43 -04:00
parent d1ee6baccf
commit 3f2727464b
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

View file

@ -25,14 +25,17 @@ protected:
volatile CTRL_MODE ctrlMode = CTRL_DIRECT;
// TODO: After you tune your motors, set the gains here.
float Kp = 1;
float Ki = 0;
float Kp = 2.50;
float Ki = 0.03;
float Kd = 0;
float Kf = 0;
float Kf = 3.00;
// Used to keep track of the target speed, in counts / interval.
float targetSpeed = 0;
// maximum accelration in counts/interval
float TRAPEZOIDAL_RAMP_RATE = 0;
/**
* This is the speed of the motor, in "encoder counts / encoder interval".
* The encoder interval is set in Robot::InitializeMotorControlTimer.