mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 00:38:02 -06:00
added onFalse stuff (im tweakin)
This commit is contained in:
@@ -341,20 +341,37 @@ public class RobotContainer {
|
|||||||
new Trigger(() -> getDeadbandedDriverController().getPOV() == 180)
|
new Trigger(() -> getDeadbandedDriverController().getPOV() == 180)
|
||||||
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.resetGyroRightAmp()));
|
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.resetGyroRightAmp()));
|
||||||
|
|
||||||
|
|
||||||
|
/* D-Pad Stuff */
|
||||||
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.TOP_BOTTOM_DPAD_AXIS) > 0.9)
|
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.TOP_BOTTOM_DPAD_AXIS) > 0.9)
|
||||||
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 1),
|
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 1),
|
||||||
|
new Translation2d(0, 0),
|
||||||
|
true)))
|
||||||
|
.onFalse(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 0),
|
||||||
new Translation2d(0, 0),
|
new Translation2d(0, 0),
|
||||||
true)));
|
true)));
|
||||||
|
|
||||||
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.TOP_BOTTOM_DPAD_AXIS) > -0.9)
|
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.TOP_BOTTOM_DPAD_AXIS) > -0.9)
|
||||||
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, -1),
|
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, -1),
|
||||||
|
new Translation2d(0, 0),
|
||||||
|
true)))
|
||||||
|
.onFalse(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 0),
|
||||||
new Translation2d(0, 0),
|
new Translation2d(0, 0),
|
||||||
true)));
|
true)));
|
||||||
|
|
||||||
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.LEFT_RIGHT_DPAD_AXIS) > 0.9)
|
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.LEFT_RIGHT_DPAD_AXIS) > 0.9)
|
||||||
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(1, 0),
|
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(1, 0),
|
||||||
|
new Translation2d(0, 0),
|
||||||
|
true)))
|
||||||
|
.onFalse(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 0),
|
||||||
new Translation2d(0, 0),
|
new Translation2d(0, 0),
|
||||||
true)));
|
true)));
|
||||||
|
|
||||||
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.LEFT_RIGHT_DPAD_AXIS) > -0.9)
|
new Trigger(() -> getDeadbandedDriverController().getRawAxis(XboxController.LEFT_RIGHT_DPAD_AXIS) > -0.9)
|
||||||
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(-1, 0),
|
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(-1, 0),
|
||||||
|
new Translation2d(0, 0),
|
||||||
|
true)))
|
||||||
|
.onFalse(new InstantCommand(() -> m_robotSwerveDrive.driveWithInput(new Translation2d(0, 0),
|
||||||
new Translation2d(0, 0),
|
new Translation2d(0, 0),
|
||||||
true)));
|
true)));
|
||||||
// ! /* Auto Recording */
|
// ! /* Auto Recording */
|
||||||
|
|||||||
Reference in New Issue
Block a user