We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc8084 commit 7e75b71Copy full SHA for 7e75b71
src/main/kotlin/frc/robot/RobotContainer.kt
@@ -207,7 +207,9 @@ class RobotContainer {
207
gate.defaultCommand = SensoredFixedGateSpeed(gate, {
208
if (controller0.xButton) Constants.kGateSpeed else (
209
if (controller0.bButton) -Constants.kGateSpeed else (
210
- if (controller0.getBumper(kLeft)) Constants.kGateLoadSpeed else 0.0
+ if (controller0.getBumper(kLeft)) Constants.kGateLoadSpeed else (
211
+ if (controller0.getTriggerAxis(kLeft) >= Constants.kTriggerThresh) -Constants.kGateLoadSpeed else 0.0
212
+ )
213
))
214
}, {
215
/* only run in sensored mode if controller0 left bumper held */
0 commit comments