Arctos6135 / frc-2024

Other
1 stars 1 forks source link

Implement feedforward + feedback control for shooter #67

Closed n-arms closed 5 months ago

n-arms commented 5 months ago

Use a velocity based simple motor feedforward and a PID controller to run flywheel at a given speed.

PID velocity loops for things that spin really fast are notoriously unstable. Try using the built in SparkMax PID methods to run the PID loop on the SparkMax itself instead of on the Rio (it'll be running at like 1kHz instead of 50 Hz), and take a look here for how to improve the default velocity filtering.

BenM-BenM commented 5 months ago

Created shooterPID command, just have to implement it in the correct places

BenM-BenM commented 5 months ago

Should be done