Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Apply the liwnter
Browse files Browse the repository at this point in the history
  • Loading branch information
maxspier committed Oct 26, 2024
1 parent 0f45bdf commit f47c472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/team766/orin/GetApriltagPoseData.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ public static ArrayList<AprilTag> getAllTags() {

if (tagData.length % 4 != 0 || tagData.length == 0) return apriltags;

for (int i = 0; i < tagData.length; i+=4) {
for (int i = 0; i < tagData.length; i += 4) {
AprilTag tag =
new AprilTag(
(int) tagData[i],
new Pose3d(
new Translation3d(
tagData[i+1],
tagData[i+2],
tagData[i+3]),
tagData[i + 1], tagData[i + 2], tagData[i + 3]),
new Rotation3d()));
apriltags.add(tag);
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/team766/orin/GetOrinRawValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import edu.wpi.first.networktables.DoubleArrayEntry;
import edu.wpi.first.networktables.DoubleArrayTopic;
import edu.wpi.first.networktables.IntegerArrayEntry;
import edu.wpi.first.networktables.IntegerArrayTopic;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableInstance;

Expand Down

0 comments on commit f47c472

Please sign in to comment.