Skip to content

Commit

Permalink
Fix merge conflictsr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 8, 2023
1 parent 2823171 commit 2aa95e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ public enum PoseStrategy {
/** Return the average of the best target poses using ambiguity as weight. */
AVERAGE_BEST_TARGETS,

/** Use all visible tags to compute a single pose estimate.. */
/**
* Use all visible tags to compute a single pose estimate on coprocessor. This option needs to
* be enabled on the PhotonVision web UI as well.
*/
MULTI_TAG_PNP_ON_COPROCESSOR,

/** Use all visible tags to compute a single pose estimate.. */
/**
* Use all visible tags to compute a single pose estimate. This runs on the RoboRIO, and can
* take a lot of time.
*/
MULTI_TAG_PNP_ON_RIO
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public Vision() {
camera = new PhotonCamera(kCameraName);

photonEstimator =
new PhotonPoseEstimator(kTagLayout, PoseStrategy.MULTI_TAG_PNP, camera, kRobotToCam);
new PhotonPoseEstimator(
kTagLayout, PoseStrategy.MULTI_TAG_PNP_ON_COPROCESSOR, camera, kRobotToCam);
photonEstimator.setMultiTagFallbackStrategy(PoseStrategy.LOWEST_AMBIGUITY);

// ----- Simulation
Expand Down

0 comments on commit 2aa95e3

Please sign in to comment.