fix binding and fix str[] in dprint

This commit is contained in:
‮Zach Wilke
2021-11-01 16:17:19 -06:00
parent d348a100b1
commit fc9498e98e
2 changed files with 6 additions and 7 deletions
@@ -53,7 +53,7 @@ public class RobotContainer {
private final ShootTube m_robotShooter = new ShootTube(SolenoidArray); private final ShootTube m_robotShooter = new ShootTube(SolenoidArray);
private final DPrinter m_debugLogger = m_robotMap.DPrinter private final DPrinter m_debugLogger = m_robotMap.DPrinter;
/* Controllers */ /* Controllers */
private final XboxController m_driverXbox = new XboxController(OIConstants.XBOX_DRIVER_ID); private final XboxController m_driverXbox = new XboxController(OIConstants.XBOX_DRIVER_ID);
private final XboxController m_operatorXbox = new XboxController(OIConstants.XBOX_OPERATOR_ID); private final XboxController m_operatorXbox = new XboxController(OIConstants.XBOX_OPERATOR_ID);
@@ -94,16 +94,15 @@ public class RobotContainer {
.whenReleased(() -> m_robotLED.setPattern(LEDConstants.DEFAULT_PATTERN)); .whenReleased(() -> m_robotLED.setPattern(LEDConstants.DEFAULT_PATTERN));
*/ */
/* Fire horn */ /* Fire horn */
new JoystickButton(getOperatorJoystick(), XboxController.LEFT_TRIGGER_AXIS) new JoystickButton(getOperatorJoystick(), XboxController.LEFT_TRIGGER)
.whenPressed(() -> m_robotHorn.hornSet(true)) .whenPressed(() -> m_robotHorn.hornSet(true))
.whenReleased(() -> m_robotHorn.hornSet(false)); .whenReleased(() -> m_robotHorn.hornSet(false));
/* Shoot T-Shirt */ /* Shoot T-Shirt, Also cycles the array */
new JoystickButton(getOperatorJoystick(), XboxController.RIGHT_TRIGGER_AXIS) new JoystickButton(getOperatorJoystick(), XboxController.RIGHT_TRIGGER)
.whenPressed(() -> m_robotShooter.ShootTubeSet(true)) .whenPressed(() -> m_robotShooter.ShootTubeSet(true))
.whenReleased(() -> m_robotShooter.ShootTubeSet(false)); .whenReleased(() -> m_robotShooter.ShootTubeSet(false));
/* TODO: Check if these binds work */
/* Cycle Between Solenoids */ /* Cycle Between Solenoids */
new JoystickButton(getOperatorJoystick(), XboxController.LEFT_BUMPER_BUTTON) new JoystickButton(getOperatorJoystick(), XboxController.LEFT_BUMPER_BUTTON)
.whenPressed(() -> m_robotShooter.CycleDown()); .whenPressed(() -> m_robotShooter.CycleDown());
+2 -2
View File
@@ -8,7 +8,7 @@ public class DPrint {
public DPrint(str type) { public DPrint(str type) {
m_debugMsgType = type; m_debugMsgType = type;
} }
public println(str[] mesage) { public println(str mesage) {
switch (m_debugMsgType) { switch (m_debugMsgType) {
case DebugConstants.TYPE_INFO: case DebugConstants.TYPE_INFO:
if (DebugConstants.SHOW_INFO) { if (DebugConstants.SHOW_INFO) {
@@ -19,7 +19,7 @@ public class DPrint {
; ;
} }
} }
public print(str[] mesage) { public print(str mesage) {
switch (m_debugMsgType) { switch (m_debugMsgType) {
case DebugConstants.TYPE_INFO: case DebugConstants.TYPE_INFO:
if (DebugConstants.SHOW_INFO) { if (DebugConstants.SHOW_INFO) {