Open Maayan-Luzon opened 5 months ago
Some fixes and checks:
this.pid = PidController.newNamedController("SHOOTER PID", KP, KI, KD, KF);
(ask for instruction).set()
and the ancoder.getVelocity()
dose not work with the same units. Fix the method getPID()
in accordance.In case it have not been done yet, check what is the ideal velocity for the system:
You must run .set(value)
multiple times for various motor values and verify the specified speed in Shuffleboard (the speed is reported in rpm units). Choose a speed that is high enough to make the movement resemble a straight line, but not too high that it reverses the trajectory or causes the note to return after striking the target. To be sure, the experiments should also be performed using the completed filed parts (speaker and amp).
The system:
Actions: