generated from DeepBlueRobotics/EmptyProject2024
-
Couldn't load subscription status.
- Fork 1
Open
Description
Until Vortex support is added to lib199, immediately after constructing the controller, put it in a known state and then set any relevant configuration parameters (e.g. voltage compensation, the smart current limit, etc). You can largely just copy this code:
The following code should be motor/controller-agnostic whenever possible so that minimal changes are required when changing motors/controllers.
| private final CANSparkFlex outakeMotorVortex = new CANSparkFlex(10,MotorType.kBrushless); |
Specifically, that means:
- Use a
CANSparkBaseinstead ofCANSparkVortexas the type. - Use an agnostic variable name like
outtakeMotorinstead ofoutakeVortexMotor.
Metadata
Metadata
Assignees
Labels
No labels