Skip to content

Commit

Permalink
Update examples to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Feb 18, 2024
1 parent 8639db3 commit 31718cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Drivetrain {
nt::DoubleArrayEntry& m_cameraToObjectEntryRef = m_cameraToObjectEntry;

frc::AprilTagFieldLayout m_aprilTagFieldLayout{
frc::AprilTagFieldLayout::LoadField(frc::AprilTagField::k2022RapidReact)};
frc::AprilTagFieldLayout::LoadField(frc::AprilTagField::k2024Crescendo)};
frc::Pose3d m_objectInField{m_aprilTagFieldLayout.GetTagPose(0).value()};

frc::PWMSparkMax m_leftLeader{1};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Drivetrain(DoubleArrayTopic cameraToObjectTopic) {
m_cameraToObjectEntry = cameraToObjectTopic.getEntry(m_defaultVal);

m_objectInField =
AprilTagFieldLayout.loadField(AprilTagFields.k2022RapidReact).getTagPose(0).get();
AprilTagFieldLayout.loadField(AprilTagFields.k2024Crescendo).getTagPose(0).get();

SmartDashboard.putData("Field", m_fieldSim);
SmartDashboard.putData("FieldEstimation", m_fieldApproximation);
Expand Down

0 comments on commit 31718cb

Please sign in to comment.