Skip to content

Commit

Permalink
Pass an Outputs instead a string for SparkFollowers
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzyna committed Feb 23, 2024
1 parent 731482a commit 78dd530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/wildstang/sample/robot/WsOutputs.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.wildstang.framework.io.outputs.Output;
import org.wildstang.hardware.roborio.outputs.config.WsMotorControllers;
import org.wildstang.hardware.roborio.outputs.config.WsSparkConfig;
import org.wildstang.hardware.roborio.outputs.config.WsSparkFollowerConfig;

/**
* Output mappings are stored here.
Expand All @@ -27,6 +28,8 @@ public enum WsOutputs implements Outputs {
DRIVE4("Module 4 Drive Motor", new WsSparkConfig(CANConstants.DRIVE4, WsMotorControllers.SPARK_FLEX_BRUSHLESS)),
ANGLE4("Module 4 Angle Motor", new WsSparkConfig(CANConstants.ANGLE4, WsMotorControllers.SPARK_MAX_BRUSHLESS)),

TEST_FOLLOWER("Test Follower", new WsSparkFollowerConfig(ANGLE4, CANConstants.ANGLE4, WsMotorControllers.SPARK_FLEX_BRUSHLESS, true)),

// ---------------------------------
// Other Motors
// ---------------------------------
Expand Down

0 comments on commit 78dd530

Please sign in to comment.