Skip to content

Commit

Permalink
Setup Elastic testing tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylve committed Feb 26, 2024
1 parent f6cc629 commit 36790eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/auto/commands/AmpAlign.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void initialize() {

@Override
public void execute() {

Pose2d robotPose2d = poseProvider.get();

// Convert the 2d robot pose to a 3d one.
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/frc/robot/swerve/SwerveDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import static edu.wpi.first.apriltag.AprilTagFieldLayout.OriginPosition.kRedAllianceWallRightSide;

import org.photonvision.EstimatedRobotPose;
import org.photonvision.simulation.PhotonCameraSim;
import org.photonvision.simulation.SimCameraProperties;
import org.photonvision.simulation.VisionSystemSim;

import com.kauailabs.navx.frc.AHRS;
import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.apriltag.AprilTagFieldLayout.OriginPosition;
Expand Down Expand Up @@ -104,9 +101,6 @@ public class SwerveDrive extends SubsystemBase {

private double previousTime = WPIUtilJNI.now() * 1e-6;

private final VisionSystemSim visionSystemSim;
private final PhotonCameraSim simCamera;

public SwerveDrive(PhotonRunnable photonEstimator) {
this.zeroHeading();

Expand Down Expand Up @@ -144,9 +138,6 @@ public SwerveDrive(PhotonRunnable photonEstimator) {

SimCameraProperties cameraProperties = new SimCameraProperties();
cameraProperties.setCalibration(640, 480, Rotation2d.fromDegrees(75.76079874010732));
simCamera = new PhotonCameraSim(photonEstimator.getCamera(), cameraProperties);

visionSystemSim = new VisionSystemSim("Limelight");

SmartDashboard.putData("Swerve", new Sendable() {
@Override
Expand Down

0 comments on commit 36790eb

Please sign in to comment.