Added a few shuffle board things

This commit is contained in:
NoahLacks63 2025-01-27 14:18:28 +00:00
parent ff3ecf6d1d
commit 5fa4738b36
3 changed files with 31 additions and 4 deletions

View File

@ -172,15 +172,30 @@ public class RobotContainer {
.withPosition(0, 0)
.withWidget(BuiltInWidgets.kComboBoxChooser);
sensorTab.addDouble("ElevatorPosition", elevator::getEncoderPosition)
sensorTab.addDouble("Elevator Position", elevator::getEncoderPosition)
.withSize(2, 1)
.withPosition(0, 0)
.withPosition(0, 1)
.withWidget(BuiltInWidgets.kTextView);
sensorTab.addDouble("ArmPosition", manipulatorPivot::getEncoderPosition)
sensorTab.addDouble("Manipulator Position", manipulatorPivot::getEncoderPosition)
.withSize(2, 1)
.withPosition(2, 1)
.withWidget(BuiltInWidgets.kTextView);
sensorTab.addDouble("Climber Pivot Position", climberPivot::getEncoderPosition)
.withSize(2, 1)
.withPosition(2, 0)
.withWidget(BuiltInWidgets.kTextView);
sensorTab.addBoolean("Coral Sensor", manipulator::getCoralBeamBreak)
.withSize(1, 1)
.withPosition(4, 1)
.withWidget(BuiltInWidgets.kBooleanBox);
sensorTab.addBoolean("Algae Sensor", manipulator::getAlgaePhotoSwitch)
.withSize(1, 1)
.withPosition(4, 0)
.withWidget(BuiltInWidgets.kBooleanBox);
}
public Command getAutonomousCommand() {

View File

@ -62,4 +62,8 @@ public class ClimberPivot extends SubsystemBase {
public boolean getCageLimitSwitch() {
return cageLimitSwitch.get();
}
}
public double getEncoderPosition() {
return neoEncoder.getPosition();
}
}

View File

@ -77,4 +77,12 @@ public class Manipulator extends SubsystemBase {
);
}).until(() -> coralBeamBreak.get() || algaeBeamBreak.get());
}
public boolean getCoralBeamBreak() {
return coralBeamBreak.get();
}
public boolean getAlgaePhotoSwitch() {
return algaeBeamBreak.get();
}
}