Limelight

This commit is contained in:
TheRealGrayden 2026-03-21 15:22:02 -04:00
parent d2864098f3
commit 4a350ea49f
1 changed files with 4 additions and 1 deletions

View File

@ -4,14 +4,17 @@
package org.fairportrobotics.frc.robolib.vision.limelight; package org.fairportrobotics.frc.robolib.vision.limelight;
import edu.wpi.first.math.estimator.SwerveDrivePoseEstimator3d; import edu.wpi.first.math.estimator.SwerveDrivePoseEstimator3d;
import edu.wpi.first.math.geometry.Pose3d;
public class Limelight { public class Limelight {
private String name; private String name;
private SwerveDrivePoseEstimator3d poseEstimator; private SwerveDrivePoseEstimator3d poseEstimator;
private Pose3d pose;
public Limelight(String name, SwerveDrivePoseEstimator3d poseEstimator) { public Limelight(String name, SwerveDrivePoseEstimator3d poseEstimator, Pose3d pose) {
this.name = name; this.name = name;
this.poseEstimator = poseEstimator; this.poseEstimator = poseEstimator;
this.pose=pose;
} }
public LimelightHelpers.PoseEstimate updateOdometry() { public LimelightHelpers.PoseEstimate updateOdometry() {