Skip to content

Commit 9a758cb

Browse files
committed
removed kSmartMotion/Motion because removed from revib
1 parent 7b899cf commit 9a758cb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/org/carlmontrobotics/lib199/sim/MockedSparkClosedLoopController.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ public REVLibError setReference(double value, SparkMax.ControlType ctrl, ClosedL
108108
*/
109109
@Deprecated
110110
public REVLibError setReference(double value, SparkMax.ControlType ctrl, ClosedLoopSlot pidSlot, double arbFeedforward, SparkClosedLoopController.ArbFFUnits arbFFUnits) {
111-
if(ctrl == SparkMax.ControlType.kSmartVelocity) {
112-
System.err.println("(MockedSparkMaxPIDController): setReference() with ControlType.kSmartVelocity is not currently implemented");
113-
return REVLibError.kNotImplemented;
114-
}
115111

116112
setpoint = value;
117113
controlType = ctrl;
@@ -124,14 +120,11 @@ public REVLibError setReference(double value, SparkMax.ControlType ctrl, ClosedL
124120
break;
125121
case kPosition:
126122
case kVelocity:
127-
case kSmartMotion:
128123
case kMAXMotionPositionControl:
129124
case kMAXMotionVelocityControl:
130125
case kCurrent:
131126
motor.setClosedLoopControl(true);
132127
break;
133-
case kSmartVelocity:
134-
break; // This should never happen
135128
}
136129

137130
activeSlot = getSlot(pidSlot.value);

0 commit comments

Comments
 (0)