@@ -57,8 +57,8 @@ public Command coralL4PositionCG() {
57
57
lifter .setHeight (LifterState .CoralL4 ).schedule ();
58
58
coralWrist .setAngle (CoralWristState .L4 ).schedule ();
59
59
algaeWrist .setAngle (AlgaeWristState .CoralMode ).schedule ();
60
- coralRoller .getCurrentCommand ().cancel ();
61
- algaeRoller .getCurrentCommand ().cancel ();
60
+ coralRoller .stop ().schedule ();
61
+ algaeRoller .stop ().schedule ();
62
62
});
63
63
}
64
64
@@ -68,8 +68,8 @@ public Command coralL3PositionCG() {
68
68
lifter .setHeight (LifterState .CoralL3 ).schedule ();
69
69
coralWrist .setAngle (CoralWristState .L3 ).schedule ();
70
70
algaeWrist .setAngle (AlgaeWristState .CoralMode ).schedule ();
71
- coralRoller .getCurrentCommand ().cancel ();
72
- algaeRoller .getCurrentCommand ().cancel ();
71
+ coralRoller .stop ().schedule ();
72
+ algaeRoller .stop ().schedule ();
73
73
});
74
74
}
75
75
@@ -79,8 +79,8 @@ public Command coralL2PositionCG() {
79
79
lifter .setHeight (LifterState .CoralL2 ).schedule ();
80
80
coralWrist .setAngle (CoralWristState .L2 ).schedule ();
81
81
algaeWrist .setAngle (AlgaeWristState .CoralMode ).schedule ();
82
- coralRoller .getCurrentCommand ().cancel ();
83
- algaeRoller .getCurrentCommand ().cancel ();
82
+ coralRoller .stop ().schedule ();
83
+ algaeRoller .stop ().schedule ();
84
84
});
85
85
}
86
86
@@ -90,8 +90,8 @@ public Command coralL1PositionCG() {
90
90
lifter .setHeight (LifterState .CoralL1 ).schedule ();
91
91
coralWrist .setAngle (CoralWristState .L1 ).schedule ();
92
92
algaeWrist .setAngle (AlgaeWristState .CoralMode ).schedule ();
93
- coralRoller .getCurrentCommand ().cancel ();
94
- algaeRoller .getCurrentCommand ().cancel ();
93
+ coralRoller .stop ().schedule ();
94
+ algaeRoller .stop ().schedule ();
95
95
});
96
96
}
97
97
@@ -102,7 +102,7 @@ public Command coralIntakeCG() {
102
102
coralWrist .setAngle (CoralWristState .Intake ).schedule ();
103
103
algaeWrist .setAngle (AlgaeWristState .CoralMode ).schedule ();
104
104
coralRoller .intake ().schedule ();
105
- algaeRoller .getCurrentCommand ().cancel ();
105
+ algaeRoller .stop ().schedule ();
106
106
});
107
107
}
108
108
@@ -112,7 +112,7 @@ public Command algaeBargePositionCG() {
112
112
lifter .setHeight (LifterState .AlgaeBarge ).schedule ();
113
113
coralWrist .setAngle (CoralWristState .AlgaeMode ).schedule ();
114
114
algaeWrist .setAngle (AlgaeWristState .Barge ).schedule ();
115
- coralRoller .getCurrentCommand ().cancel ();
115
+ coralRoller .stop ().schedule ();
116
116
});
117
117
}
118
118
@@ -122,7 +122,7 @@ public Command algaeL3IntakeCG() {
122
122
lifter .setHeight (LifterState .AlgaeL3 ).schedule ();
123
123
coralWrist .setAngle (CoralWristState .AlgaeMode ).schedule ();
124
124
algaeWrist .setAngle (AlgaeWristState .L3 ).schedule ();
125
- coralRoller .getCurrentCommand ().cancel ();
125
+ coralRoller .stop ().schedule ();
126
126
algaeRoller .intake ().schedule ();
127
127
});
128
128
}
@@ -133,7 +133,7 @@ public Command algaeL2IntakeCG() {
133
133
lifter .setHeight (LifterState .AlgaeL2 ).schedule ();
134
134
coralWrist .setAngle (CoralWristState .AlgaeMode ).schedule ();
135
135
algaeWrist .setAngle (AlgaeWristState .L2 ).schedule ();
136
- coralRoller .getCurrentCommand ().cancel ();
136
+ coralRoller .stop ().schedule ();
137
137
algaeRoller .intake ().schedule ();
138
138
});
139
139
}
@@ -144,7 +144,7 @@ public Command algaeProcessorPositionCG() {
144
144
lifter .setHeight (LifterState .AlgaeProcessor ).schedule ();
145
145
coralWrist .setAngle (CoralWristState .AlgaeMode ).schedule ();
146
146
algaeWrist .setAngle (AlgaeWristState .Processor ).schedule ();
147
- coralRoller .getCurrentCommand ().cancel ();
147
+ coralRoller .stop ().schedule ();
148
148
});
149
149
}
150
150
@@ -154,7 +154,7 @@ public Command algaeFloorIntakeCG() {
154
154
lifter .setHeight (LifterState .AlgaeIntakeFloor ).schedule ();
155
155
coralWrist .setAngle (CoralWristState .AlgaeMode ).schedule ();
156
156
algaeWrist .setAngle (AlgaeWristState .Floor ).schedule ();
157
- coralRoller .getCurrentCommand ().cancel ();
157
+ coralRoller .stop ().schedule ();
158
158
algaeRoller .intake ().schedule ();
159
159
});
160
160
}
0 commit comments