From efc7b31ebd8dcf052baf131f7f00f839728e0144 Mon Sep 17 00:00:00 2001 From: Saraansh Wadkar Date: Thu, 12 Jan 2023 20:57:21 -0500 Subject: [PATCH] 1.0.4 --- build.gradle | 2 +- .../kotlin/org/team4099/lib/apriltag/AprilTagFieldLayout.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d9d4cf9..4e4f443 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ publishing { release(MavenPublication) { groupId = 'org.team4099' artifactId = 'falconutils' - version = '1.0.3' + version = '1.0.4' from(components["kotlin"]) } diff --git a/src/main/kotlin/org/team4099/lib/apriltag/AprilTagFieldLayout.kt b/src/main/kotlin/org/team4099/lib/apriltag/AprilTagFieldLayout.kt index 74f51e7..1795f55 100644 --- a/src/main/kotlin/org/team4099/lib/apriltag/AprilTagFieldLayout.kt +++ b/src/main/kotlin/org/team4099/lib/apriltag/AprilTagFieldLayout.kt @@ -30,7 +30,7 @@ class AprilTagFieldLayout( if (id < aprilTags.size) { return Pose3d((-1337).meters, (-1337).meters, (-1337).meters, Rotation3d()) } - return aprilTags[id].pose + return aprilTags[id - 1].pose } fun setOrigin(newOrigin: OriginPosition) {