Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/main/cpp/AprilTagPoseEstimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using namespace frc;

// this function expects to get the april tag the april tag pose reading in the following format:
// x - 1st value from jetson
// y - 2nd value from jetson
// z - 3rd value from jetson
// roll (x, 1st value in rotation3d) - 4th value from jetson
// pitch (y, 2nd value in rotation3d) - 5th value from jetson
// yaw (z, 3rd value in rotation3d) - 6th value from jetson
// aprilTagNum: april tag number
// x - 3rd value from jetson
// y - 4th value from jetson
// z - doesn't matter, can be left 0
// roll (x, 1st value in rotation3d) - doesn't matter, can be left 0
// pitch (y, 2nd value in rotation3d) - doesn't matter, can be left 0
// yaw (z, 3rd value in rotation3d) - 4th value from jetson
// aprilTagNum: april tag number - 2nd value from jetson
Pose2d AprilTagPoseEstimator::getPose(Pose3d aprilTagPosReading, int aprilTagNum) {
units::meter_t x = aprilTagPosReading.X();
units::meter_t y = aprilTagPosReading.Y();
Expand Down