Skip to content

Commit dad8d82

Browse files
author
Jonathan
committed
fixed prints and cameras
1 parent f713d2b commit dad8d82

File tree

9 files changed

+12
-15
lines changed

9 files changed

+12
-15
lines changed

src/main/java/frc/team5115/Classes/Hardware/HardwareIntake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void close(){
5959
private void setLights(boolean wantsCones) {
6060
coneLight.set(wantsCones);
6161
cubeLight.set(!wantsCones);
62-
System.out.println(wantsCones);
62+
//System.out.println(wantsCones);
6363
}
6464

6565
}

src/main/java/frc/team5115/Classes/Software/Drivetrain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ else if (Math.abs(y) > 1){
154154

155155
public boolean TankDriveToAngle(double angleDegrees) {
156156
double rotationDegrees = navx.getYawDeg();
157-
System.out.println(rotationDegrees-angleDegrees);
157+
System.out.println("remaining degrees: " + (rotationDegrees-angleDegrees));
158158
double turn = MathUtil.clamp(anglePID.calculate(rotationDegrees, angleDegrees), -0.6, 0.6);
159159
leftSpeed = turn;
160160
rightSpeed = -turn;

src/main/java/frc/team5115/Commands/Auto/AutoCommandGroup.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public AutoCommandGroup(Drivetrain drivetrain, Arm arm, HardwareArm hArm, Hardwa
2525
this.drivetrain = drivetrain;
2626
this.hArm = hArm;
2727
this.hIntake = hIntake;
28-
System.out.println(inIdealPosition);
2928
/*
3029
addCommands(
3130
new Stow(arm, hArm, hIntake),

src/main/java/frc/team5115/Commands/Intake/RawIntakeCommands/IntakeExtend_v2.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void initialize() {
4646
//topLength_target = 20;
4747
//bottomLength_target = 20;
4848
}
49-
System.out.println(intake.h.open);
49+
//System.out.println(intake.h.open);
5050
}
5151

5252

@@ -212,18 +212,15 @@ else if((is_overhung)){
212212
if(is_extending){
213213
step_bottom();
214214
pause_top();
215-
System.out.println("Extending: " + is_extending);
216215
}
217216
else{
218217
pause_bottom();
219218
step_top();
220-
System.out.println("Extending: " + is_extending);
221219
}
222220
}
223221
else {// if((Math.abs(delta_length) < Math.abs(max_delta_length_when_seperated)) && Math.abs(min_delta_length_when_seperated) < Math.abs(delta_length))
224222
step_bottom();
225223
step_top();
226-
System.out.println(is_overhung);
227224
}
228225

229226
}
@@ -234,7 +231,7 @@ else if((is_overhung)){
234231

235232
public void end(boolean interrupted){
236233
intake.resetPID();
237-
System.out.println("Stopped");
234+
System.out.println("Stopped in IntakeExtend_v2");
238235
}
239236

240237
public boolean isFinished() {

src/main/java/frc/team5115/Commands/Intake/RawIntakeCommands/IntakeTurn.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public void initialize() {
2424
}
2525

2626
public void execute(){
27-
System.out.println(intake.getTurnDeg());
27+
System.out.println("Arm Rotation Degrees: " + intake.getTurnDeg());
2828
}
2929

3030
public void end(boolean interrupted){
31-
System.out.println("Stopped");
31+
System.out.println("Stopped in IntakeTurn");
3232
}
3333

3434
public boolean isFinished() {

src/main/java/frc/team5115/Commands/Intake/Startup_Angle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void execute(){
2929
}
3030

3131
public void end(boolean interrupted){
32-
System.out.println("Stopped");
32+
System.out.println("Stopped in Startup_Angle");
3333
intake.zeroArm();
3434
intake.stop();
3535
intake.setLength(0);

src/main/java/frc/team5115/Commands/Intake/Startup_Intake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void execute(){
3333
}
3434

3535
public void end(boolean interrupted){
36-
System.out.println("Stopped");
36+
System.out.println("Stopped in Startup_Intake");
3737
intake.zeroArm();
3838
intake.stop();
3939
intake.setLength(0);

src/main/java/frc/team5115/Robot/Robot.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void robotPeriodic() {
2525
public void disabledInit() {
2626
robotContainer.disabledInit();
2727
robotContainer.stopEverything();
28-
CameraServer.startAutomaticCapture();
28+
//CameraServer.startAutomaticCapture();
2929
}
3030

3131
@Override
@@ -34,7 +34,7 @@ public void disabledPeriodic() {
3434

3535
@Override
3636
public void autonomousInit() {
37-
CameraServer.startAutomaticCapture();
37+
// CameraServer.startAutomaticCapture();
3838
robotContainer.startAuto();
3939
}
4040

@@ -45,7 +45,7 @@ public void autonomousPeriodic() {
4545

4646
public void teleopInit () {
4747
robotContainer.startTeleop();
48-
CameraServer.startAutomaticCapture();
48+
//CameraServer.startAutomaticCapture();
4949
}
5050

5151
public void teleopPeriodic () {

src/main/java/frc/team5115/Robot/RobotContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public void startAuto(){
117117
drivetrain.resetNAVx();
118118
goodAuto = good.getBoolean(false);
119119
//startup.schedule();
120+
System.out.println("Good auto? " + goodAuto + "!!!!!!!");
120121
drivetrain.stop();
121122
autoCommandGroup = new AutoCommandGroup(drivetrain, arm, hardwareArm, intake, goodAuto);
122123
autoCommandGroup.schedule();

0 commit comments

Comments
 (0)