Skip to content

Commit 7e75b71

Browse files
fix gate reverse
1 parent 6cc8084 commit 7e75b71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/frc/robot/RobotContainer.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ class RobotContainer {
207207
gate.defaultCommand = SensoredFixedGateSpeed(gate, {
208208
if (controller0.xButton) Constants.kGateSpeed else (
209209
if (controller0.bButton) -Constants.kGateSpeed else (
210-
if (controller0.getBumper(kLeft)) Constants.kGateLoadSpeed else 0.0
210+
if (controller0.getBumper(kLeft)) Constants.kGateLoadSpeed else (
211+
if (controller0.getTriggerAxis(kLeft) >= Constants.kTriggerThresh) -Constants.kGateLoadSpeed else 0.0
212+
)
211213
))
212214
}, {
213215
/* only run in sensored mode if controller0 left bumper held */

0 commit comments

Comments
 (0)