mirror of
https://github.com/Team4388/To-Shoot-TShirt.git
synced 2026-06-09 00:38:05 -06:00
fix binding and fix str[] in dprint
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user