Skip to content

Commit

Permalink
debug stuff
Browse files Browse the repository at this point in the history
--Gabe
  • Loading branch information
willitcode committed Oct 27, 2023
1 parent 043078e commit 292a2db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ private void configureBindings() {

controller.rightBumper().whileTrue(balance);

controller.leftBumper().whileTrue(new InstantCommand(driveSubsystem::printPoses));

controller.y().toggleOnTrue(driveFO);

controller.b().whileTrue(deployPlunger);
Expand Down
13 changes: 10 additions & 3 deletions src/main/java/frc/robot/subsystems/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@ public boolean trajectoryDone() {
return ramseteController.atReference();
}

/**
* @deprecated debug method
*/
@Deprecated
public void printPoses() {
/* KILL THIS IN PROD */
System.out.println("LL pose: " + limelightManager.getTargetedLimelight().getBotpose2d());
System.out.println("Odo pose: " + whereTheHeckAreWe.getEstimatedPosition());
}

/**
* Subsystem periodic, runs every scheduler loop.
*
Expand Down Expand Up @@ -401,8 +411,5 @@ public void periodic() {
whereTheHeckAreWe.addVisionMeasurement(limelight.getBotpose2d(), Timer.getFPGATimestamp());
}
}

/* TODO: REMOVE IN PROD */
//updatePIDValuesFromSmartDash();
}
}

0 comments on commit 292a2db

Please sign in to comment.