Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New branch to merge pose estimator #40

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

CMalohn16
Copy link
Contributor

  • Improves upon vision processing with the vision header and source files.
  • Adds the photon pose estimator to estimate where we are on the field.

frc::SmartDashboard::PutNumber("DJSLHLDJOSJDODKJSKBDBSHBSBDXXXXXXX", p.X().value());
frc::SmartDashboard::PutNumber("DJSLHLDJOSJDODKJSKBDBSHBSBDddfdfdfYYYYYYYY", p.Y().value());
frc::SmartDashboard::PutNumber("DJSLHLDJOSJDODKJSKBDBSHBSBDdfdfdfdfdfdfdfdZZZZZZZZZ", p.Z().value());

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The three print statements above are used to print the pose for debugging

@CMalohn16 CMalohn16 merged commit 5900a52 into main Mar 25, 2024
1 check passed
@CMalohn16 CMalohn16 deleted the NewPhotonPoseEstimator branch March 25, 2024 21:56
@@ -137,6 +138,8 @@ class Robot : public frc::TimedRobot {
// Shooter camera
photon::PhotonCamera a_camera{SHOOTER_CAMERA_NAME};

Vision a_Vision;

frc::AprilTagFieldLayout aprilTagFieldLayout = frc::LoadAprilTagLayoutField(frc::AprilTagField::k2024Crescendo);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is all encapsulated in the Vision class now, this would be safe to delete from the Robot class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants