Skip to content

Commit e1e682f

Browse files
added smartDasboard for testing
1 parent 43ee1c6 commit e1e682f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/carlmontrobotics/subsystems/IntakeShooter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class IntakeShooter extends SubsystemBase {
3434
private TimeOfFlight intakeDistanceSensor = new TimeOfFlight(INTAKE_DISTANCE_SENSOR_PORT); // make sure id port is correct here
3535
private TimeOfFlight OutakeDistanceSensor = new TimeOfFlight(OUTAKE_DISTANCE_SENSOR_PORT); // insert
3636
private double goalOutakeRPM = outakeEncoder.getVelocity();
37+
private boolean testingRumble = false;
3738
public IntakeShooter() {
3839
//Figure out which ones to set inverted
3940
intakeMotor.setInverted(INTAKE_MOTOR_INVERSION);
@@ -69,7 +70,7 @@ public boolean outakeDetectsNote() {
6970

7071
//Aaron will work on this
7172
public boolean noteInIntake(){
72-
return intakeDetectsNote() && outakeDetectsNote();
73+
return testingRumble;//intakeDetectsNote() && outakeDetectsNote();
7374
}
7475
// //Find offset of note from the center line using big mathy mathy, god I hope this works chatgpt gave me the formulas :))))))
7576
// //find out what this means
@@ -104,6 +105,8 @@ public void periodic() {
104105
SmartDashboard.putNumber("distance sensor outake", getGamePieceDistanceOutake());
105106
SmartDashboard.putBoolean("DSIntake Sees piece", intakeDetectsNote());
106107
SmartDashboard.putBoolean("DSOutake Sees piece", outakeDetectsNote());
108+
SmartDashboard.putBoolean("Rumble boolean", testingRumble);
109+
testingRumble = SmartDashboard.getBoolean("Rumble boolean", testingRumble);
107110

108111
}
109112

0 commit comments

Comments
 (0)