Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
ficed small commenting issues in robot
Browse files Browse the repository at this point in the history
  • Loading branch information
Taimorioka committed Nov 21, 2024
1 parent 1bf5972 commit 79c6a68
Showing 1 changed file with 24 additions and 29 deletions.
53 changes: 24 additions & 29 deletions src/main/java/com/frcteam3636/frc2024/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import edu.wpi.first.wpilibj2.command.Command
import edu.wpi.first.wpilibj2.command.CommandScheduler
import edu.wpi.first.wpilibj2.command.Commands
import edu.wpi.first.wpilibj2.command.button.CommandXboxController
import edu.wpi.first.wpilibj2.command.button.JoystickButton
import edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine
import org.littletonrobotics.junction.LogFileUtil
import org.littletonrobotics.junction.LoggedRobot
Expand Down Expand Up @@ -137,45 +138,39 @@ object Robot : LoggedRobot() {

/** Configure which commands each joystick button triggers. */
private fun configureBindings() {
// Drivetrain.defaultCommand = Drivetrain.driveWithJoysticks(joystickLeft, joystickRight)
Drivetrain.defaultCommand = Drivetrain.driveWithJoysticks(joystickLeft, joystickRight)
Indexer.defaultCommand = Indexer.autoRun()

// (The button with the yellow tape on it)
// JoystickButton(joystickLeft, 8).onTrue(Commands.runOnce({
// println("Zeroing gyro.")
// Drivetrain.zeroGyro()
// }).ignoringDisable(true))
JoystickButton(joystickLeft, 8).onTrue(Commands.runOnce({
println("Zeroing gyro.")
Drivetrain.zeroGyro()
}).ignoringDisable(true))

// //Intake
// controller.rightBumper()
// controller.a()
// .debounce(0.150)
// .whileTrue(
// Intake.outtake()
// )
//
// controller.x()
// .debounce(0.150)
// .whileTrue(
// Intake.intake()
// )
//
controller.a()
.debounce(0.150)
.whileTrue(
Intake.outtake()
)

controller.x()
.debounce(0.150)
.whileTrue(
Intake.intake()
)

controller.b()
.debounce(0.150)
.whileTrue(
Indexer.outtakeBalloon()
)

controller.y()
.debounce(0.150)
.whileTrue(
Indexer.indexBalloon()
)
// controller.b()
// .debounce(0.150)
// .whileTrue(
// Indexer.outtakeBalloon()
// )
//
// controller.y()
// .debounce(0.150)
// .whileTrue(
// Indexer.indexBalloon()
// )

// //Outtake
// controller.leftBumper()
Expand Down

0 comments on commit 79c6a68

Please sign in to comment.