Skip to content

Commit

Permalink
comp changes before first practice match
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Apr 5, 2024
1 parent 08e8426 commit 3994677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private void configureBindings() {
}, _ledSubsystem));

// TESTING ONLY!!!
_driveController.triangle().onTrue(Commands.runOnce(() -> _swerveSubsystem.resetGyro(180), _swerveSubsystem));
// _driveController.triangle().onTrue(Commands.runOnce(() -> _swerveSubsystem.resetGyro(180), _swerveSubsystem));

// _driveController.triangle().onTrue(Commands.run(() -> {
// SmartDashboard.putNumber("KV", SmartDashboard.getNumber("DRIVE VOLTAGE", 0) / _swerveSubsystem.getRobotRelativeSpeeds().vxMetersPerSecond);
Expand All @@ -197,12 +197,12 @@ private void configureBindings() {


// TESTING ONLY!!!
_driveController.circle().onTrue(Commands.runOnce(() -> {
_driveController.povUp().onTrue(Commands.runOnce(() -> {
Optional<PoseEstimate> pose = _visionSubsystem.getBotposeBlue();

if (pose.isPresent()) {
Pose2d botpose = pose.get().pose;
_swerveSubsystem.resetPose(new Pose2d(botpose.getX(), botpose.getY(), _swerveSubsystem.getHeading()));
_swerveSubsystem.resetPose(botpose);
}
}, _swerveSubsystem));

Expand Down

0 comments on commit 3994677

Please sign in to comment.