Skip to content

Commit

Permalink
include megatag2 raw pose2d estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
ez500 committed Apr 4, 2024
1 parent 8d6c178 commit 052d732
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/frc/lib/util/LimelightHelpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,10 @@ public static double[] getBotPose_wpiBlue(String limelightName) {
return getLimelightNTDoubleArray(limelightName, "botpose_wpiblue");
}

public static double[] getBotPose_orb_wpiBlue(String limelightName) {
return getLimelightNTDoubleArray(limelightName, "botpose_orb_wpiblue");
}

public static double[] getBotPose_TargetSpace(String limelightName) {
return getLimelightNTDoubleArray(limelightName, "botpose_targetspace");
}
Expand Down Expand Up @@ -758,6 +762,12 @@ public static PoseEstimate getBotPoseEstimate_wpiBlue(String limelightName) {
return getBotPoseEstimate(limelightName, "botpose_wpiblue");
}

public static Pose2d getBotPose2d_orb_wpiBlue(String limelightName) {

double[] result = getBotPose_orb_wpiBlue(limelightName);
return toPose2D(result);
}

/**
* Gets the Pose2d and timestamp for use with WPILib pose estimator (addVisionMeasurement) when you are on the BLUE
* alliance
Expand Down

0 comments on commit 052d732

Please sign in to comment.