Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Driver bindings (#34)
Browse files Browse the repository at this point in the history
* feat: add more driver bindings

Co-authored-by: doinkythederp <doinkythederp@icloud.com>

* feat: fucking killing myself

---------

Co-authored-by: drive station <drivestation@3636.team>
  • Loading branch information
doinkythederp and drive station authored Dec 16, 2023
1 parent 4c3c79e commit 45c0a9f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main/java/frc/robot/RobotContainer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object RobotContainer {
setDefaultCommands()
DriverStation.silenceJoystickConnectionWarning(RobotBase.isSimulation())

LimelightHelpers.setCameraMode_Driver("limelight")
LimelightHelpers.setCameraMode_Driver("limelight");
LimelightHelpers.setLEDMode_ForceOff("limelight")
}

Expand Down Expand Up @@ -94,6 +94,16 @@ object RobotContainer {
})
)

Trigger { controller.rightTriggerAxis >= 0.5 }
.onTrue(InstantCommand({
Shooter.feed(1.0)
Indexer.setSpeed(1.0)
}))
.onFalse(InstantCommand({
Shooter.feed(0.0)
Indexer.setSpeed(0.0)
}))

// Operator bindings

Trigger { controller.rightTriggerAxis >= 0.5 }
Expand Down Expand Up @@ -212,7 +222,7 @@ object RobotContainer {
}

val autonomousCommand: Command = SequentialCommandGroup(
InstantCommand({ Drivetrain.drive(ChassisSpeeds(15.0, 0.0, 0.0)) }
InstantCommand({ Drivetrain.drive(ChassisSpeeds(4.0, 0.0, 0.0)) }
),
WaitCommand(4.0),
InstantCommand({ Drivetrain.drive(ChassisSpeeds(0.0, 0.0, 0.0)) })
Expand Down

0 comments on commit 45c0a9f

Please sign in to comment.