mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Update gear ratios
This commit is contained in:
@@ -233,20 +233,20 @@ public class RobotContainer {
|
||||
|
||||
//TEST - > Defense: X position on wheels and swerve drive pid on position
|
||||
new JoystickButton(getDeadbandedDriverController(), XboxController.X_BUTTON)
|
||||
// .whileTrue(new RunCommand(() -> {
|
||||
// m_robotSwerveDrive.defenseXPosition();
|
||||
// }, m_robotSwerveDrive))
|
||||
// .onFalse(new InstantCommand(() -> {
|
||||
// m_robotSwerveDrive.stopDefenseXPosition();
|
||||
|
||||
.onTrue(new InstantCommand(() -> {
|
||||
currentPose = m_robotSwerveDrive.getCurrentPose();
|
||||
}))
|
||||
.whileTrue(new RunCommand(() -> {
|
||||
m_stayInPosition.goToTargetPose(currentPose);
|
||||
.whileTrue(new RunCommand(() -> {
|
||||
m_robotSwerveDrive.defenseXPosition();
|
||||
}, m_robotSwerveDrive))
|
||||
.onFalse(new InstantCommand(() -> {
|
||||
m_robotSwerveDrive.softStop();
|
||||
.onFalse(new InstantCommand(() -> {
|
||||
m_robotSwerveDrive.stopDefenseXPosition();
|
||||
|
||||
// .onTrue(new InstantCommand(() -> {
|
||||
// currentPose = m_robotSwerveDrive.getCurrentPose();
|
||||
// }))
|
||||
// .whileTrue(new RunCommand(() -> {
|
||||
// m_stayInPosition.goToTargetPose(currentPose);
|
||||
// }, m_robotSwerveDrive))
|
||||
// .onFalse(new InstantCommand(() -> {
|
||||
// m_robotSwerveDrive.softStop();
|
||||
|
||||
}));
|
||||
|
||||
@@ -352,6 +352,14 @@ public class RobotContainer {
|
||||
// m_robotClimber.toggleDeployed();
|
||||
// }));
|
||||
|
||||
new JoystickButton(getDeadbandedOperatorController(), XboxController.A_BUTTON)
|
||||
.onTrue(new InstantCommand(() -> {
|
||||
m_robotShooter.indexerStalled();
|
||||
}))
|
||||
.onFalse(new InstantCommand(() -> {
|
||||
m_robotShooter.spinUpIdle();
|
||||
}));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user