Limelight
This commit is contained in:
parent
d2864098f3
commit
4a350ea49f
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue