first95 / FRC2020

Code base for 2020 robot, initialized with develop branch of 2019 repo.
MIT License
1 stars 1 forks source link

Write closed-loop speed control for flywheel on BreadBot #23

Open jwalthour opened 4 years ago

jwalthour commented 4 years ago

If using SparkMax/Neo, here's example code for running speed control on a single motor. Note that this code is complete and could largely be used as is, setting the device id to 1 and using a joystick stick to control the speed set point.

https://github.com/REVrobotics/SPARK-MAX-Examples/blob/master/Java/Velocity%20Closed%20Loop%20Control/src/main/java/frc/robot/Robot.java

jwalthour commented 4 years ago

Ryan started working on this today

WesleyJ-128 commented 3 years ago

Is this necessary now that the shooter on Spangler has closed-loop PID speed control?