From 78dd5305089d1d71ee7c17220bbc66764e233689 Mon Sep 17 00:00:00 2001 From: Liam Fruzyna Date: Thu, 22 Feb 2024 18:40:04 -0600 Subject: [PATCH] Pass an Outputs instead a string for SparkFollowers --- src/main/java/org/wildstang/sample/robot/WsOutputs.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/wildstang/sample/robot/WsOutputs.java b/src/main/java/org/wildstang/sample/robot/WsOutputs.java index 67bdd41..6b3bd47 100644 --- a/src/main/java/org/wildstang/sample/robot/WsOutputs.java +++ b/src/main/java/org/wildstang/sample/robot/WsOutputs.java @@ -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. @@ -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 // ---------------------------------