This commit is contained in:
aarav18
2022-03-20 20:52:05 -06:00
parent 757f236752
commit b136518519
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ public final class Constants {
public static final int STORAGE_CAN_ID = 18;
public static final int BEAM_SENSOR_SHOOTER = 28; //TODO
public static final int BEAM_SENSOR_INTAKE = 29; //TODO
public static final double STORAGE_SPEED = 0.3;
public static final double STORAGE_SPEED = 0.9;
}
public static final class LEDConstants {
public static final int LED_SPARK_ID = 0;
@@ -264,7 +264,7 @@ public class RobotContainer {
// B > Toggle claws
new JoystickButton(getOperatorController(), XboxController.Button.kB.value)
.whenPressed(new RunCommand(() -> m_robotClaws.toggleClaws(), m_robotClaws));
.whenPressed(new InstantCommand(() -> m_robotClaws.toggleClaws(), m_robotClaws));
// X > Toggles extender in and out
new JoystickButton(getOperatorController(), XboxController.Button.kX.value)
@@ -272,7 +272,7 @@ public class RobotContainer {
// A > Spit Out Ball
new JoystickButton(getOperatorController(), XboxController.Button.kA.value)
.whenPressed(new RunCommand(() -> m_robotTurret.gotoMidpoint(), m_robotTurret))
.whileHeld(new RunCommand(() -> m_robotTurret.gotoMidpoint(), m_robotTurret))
.whileHeld(new RunCommand(() -> m_robotBoomBoom.runDrumShooter(0.25)));
// Y > Full aim command