Open jwalthour opened 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
Ryan started working on this today
Is this necessary now that the shooter on Spangler has closed-loop PID speed control?
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