Added tag struct. Should integrate later

This commit is contained in:
66945
2023-02-19 11:10:57 -07:00
committed by GitHub
parent 267d6cc8e9
commit 92243d0942
@@ -8,9 +8,16 @@ package frc4388.robot.subsystems;
import edu.wpi.first.networktables.NetworkTableInstance;
public class Apriltags {
public static class Tag {
boolean visible = true;
double x, y, z = 0;
}
public Object[] getApriltagPosition() {
final var tagTable = NetworkTableInstance.getDefault().getTable("apriltag");
final var tag = new Tag();
// integrate the tag system
// return new Object[] {true,
// tagTable.getEntry("TagPosX"),
// tagTable.getEntry("TagPosY"),