We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee1d52 commit 3c0028fCopy full SHA for 3c0028f
1 file changed
src/main/java/frc/robot/lib/sim/MockSparkMax.java
@@ -111,4 +111,8 @@ public REVLibError setSmartCurrentLimit(int limit) {
111
public SparkMaxPIDController getPIDController() {
112
return pidController;
113
}
114
+
115
+ public void setVoltage(double outputVolts) {
116
+ set(outputVolts / 12);
117
+ }
118
0 commit comments