mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +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:
@@ -37,13 +37,13 @@ class Robot : public frc::TimedRobot {
|
||||
private:
|
||||
static void VisionThread() {
|
||||
frc::AprilTagDetector detector;
|
||||
// look for tag16h5, don't correct any error bits
|
||||
detector.AddFamily("tag16h5", 0);
|
||||
// look for tag36h11, 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)
|
||||
frc::AprilTagPoseEstimator::Config poseEstConfig = {
|
||||
.tagSize = units::length::inch_t(6.0),
|
||||
.tagSize = units::length::inch_t(6.5),
|
||||
.fx = 699.3778103158814,
|
||||
.fy = 677.7161226393544,
|
||||
.cx = 345.6059345433618,
|
||||
|
||||
Reference in New Issue
Block a user