mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] Update april tag family to 36h11 (#6126)
Changes size to 6.5 inches per https://www.firstinspires.org/robotics/frc/blog/2023-technology-updates-past-present-future-and-beyond Uses 7 error bit correction as recommended in PhotonVision docs.
This commit is contained in:
@@ -39,14 +39,14 @@ public class Robot extends TimedRobot {
|
||||
|
||||
void apriltagVisionThreadProc() {
|
||||
var detector = new AprilTagDetector();
|
||||
// look for tag16h5, don't correct any error bits
|
||||
detector.addFamily("tag16h5", 0);
|
||||
// look for tag136h11, correct 7 error bits
|
||||
detector.addFamily("tag36h11", 7);
|
||||
|
||||
// Set up Pose Estimator - parameters are for a Microsoft Lifecam HD-3000
|
||||
// (https://www.chiefdelphi.com/t/wpilib-apriltagdetector-sample-code/421411/21)
|
||||
var poseEstConfig =
|
||||
new AprilTagPoseEstimator.Config(
|
||||
0.1524, 699.3778103158814, 677.7161226393544, 345.6059345433618, 207.12741326228522);
|
||||
0.1651, 699.3778103158814, 677.7161226393544, 345.6059345433618, 207.12741326228522);
|
||||
var estimator = new AprilTagPoseEstimator(poseEstConfig);
|
||||
|
||||
// Get the UsbCamera from CameraServer
|
||||
|
||||
Reference in New Issue
Block a user