Add SmartDashboard Readouts

This commit is contained in:
C4llSiqn
2023-04-26 12:13:48 -06:00
parent cc05e186cd
commit 5f794bf1b3
2 changed files with 31 additions and 12 deletions
@@ -183,5 +183,24 @@ public class RobotContainer {
// m_robotShooterTopRightInner.fire();
// m_robotShooterTopRightOuter.fire();
}
public void putReadyState() {
SmartDashboard.putBoolean("Bottom Left", m_robotShooterBottomLeft.isReady());
SmartDashboard.putBoolean("Bottom Middle", m_robotShooterBottomMiddle.isReady());
SmartDashboard.putBoolean("Bottom Right", m_robotShooterBottomRight.isReady());
SmartDashboard.putBoolean("Top Left", m_robotShooterTopLeft.isReady());
SmartDashboard.putBoolean("Top Middle", m_robotShooterTopMiddle.isReady());
SmartDashboard.putBoolean("Top Right", m_robotShooterTopRight.isReady());
// SmartDashboard.putBoolean("", m_robotShooterBottomLeftOuter.isReady());
// SmartDashboard.putBoolean("", m_robotShooterBottomLeftInner.isReady());
// SmartDashboard.putBoolean("", m_robotShooterBottomRightInner.isReady());
// SmartDashboard.putBoolean("", m_robotShooterBottomRightOuter.isReady());
// SmartDashboard.putBoolean("", m_robotShooterTopLeftOuter.isReady());
// SmartDashboard.putBoolean("", m_robotShooterTopLeftInner.isReady());
// SmartDashboard.putBoolean("", m_robotShooterTopRightInner.isReady());
// SmartDashboard.putBoolean("", m_robotShooterTopRightOuter.isReady());
}
}
+12 -12
View File
@@ -75,19 +75,19 @@ public class RobotMap {
private void configureLiveWindow() {
SendableRegistry.setName(driveMotorLeftFollower, "Drive", "Motor Left Follower");
SendableRegistry.setName(driveMotorRightFollower, "Drive", "Motor Right Follower");
SendableRegistry.setName(driveBase, "Drive", "Base");
// SendableRegistry.setName(driveMotorLeftFollower, "Drive", "Motor Left Follower");
// SendableRegistry.setName(driveMotorRightFollower, "Drive", "Motor Right Follower");
// SendableRegistry.setName(driveBase, "Drive", "Base");
SendableRegistry.setName(hornSolenoid, "Horn", "Solenoid");
// SendableRegistry.setName(hornSolenoid, "Horn", "Solenoid");
SendableRegistry.setName(shooterSolenoidBottomLeftOuter, "Shooter", "Solenoid Bottom Left Outer");
SendableRegistry.setName(shooterSolenoidBottomLeftInner, "Shooter", "Solenoid Bottom Left Inner");
SendableRegistry.setName(shooterSolenoidBottomRightInner, "Shooter", "Solenoid Bottom Right Inner");
SendableRegistry.setName(shooterSolenoidBottomRightOuter, "Shooter", "Solenoid Bottom Right Outer");
SendableRegistry.setName(shooterSolenoidTopLeftOuter, "Shooter", "Solenoid Top Left Outer");
SendableRegistry.setName(shooterSolenoidTopLeftInner, "Shooter", "Solenoid Top Left Inner");
SendableRegistry.setName(shooterSolenoidTopRightInner, "Shooter", "Solenoid Top Right Inner");
SendableRegistry.setName(shooterSolenoidTopRightOuter, "Shooter", "Solenoid Top Right Outer");
// SendableRegistry.setName(shooterSolenoidBottomLeftOuter, "Shooter", "Solenoid Bottom Left Outer");
// SendableRegistry.setName(shooterSolenoidBottomLeftInner, "Shooter", "Solenoid Bottom Left Inner");
// SendableRegistry.setName(shooterSolenoidBottomRightInner, "Shooter", "Solenoid Bottom Right Inner");
// SendableRegistry.setName(shooterSolenoidBottomRightOuter, "Shooter", "Solenoid Bottom Right Outer");
// SendableRegistry.setName(shooterSolenoidTopLeftOuter, "Shooter", "Solenoid Top Left Outer");
// SendableRegistry.setName(shooterSolenoidTopLeftInner, "Shooter", "Solenoid Top Left Inner");
// SendableRegistry.setName(shooterSolenoidTopRightInner, "Shooter", "Solenoid Top Right Inner");
// SendableRegistry.setName(shooterSolenoidTopRightOuter, "Shooter", "Solenoid Top Right Outer");
}
}