Skip to content

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

@jwalthour

Description

@jwalthour

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions