diff --git a/src/main/java/competition/subsystems/vision/SimpleNote.java b/src/main/java/competition/subsystems/vision/SimpleNote.java index afb1f0dd..60a06556 100644 --- a/src/main/java/competition/subsystems/vision/SimpleNote.java +++ b/src/main/java/competition/subsystems/vision/SimpleNote.java @@ -7,8 +7,6 @@ public class SimpleNote implements StructSerializable { final double yaw; final double pitch; - public static final SimpleNoteStruct struct = new SimpleNoteStruct(); - public SimpleNote(double area, double yaw, double pitch) { this.area = area; this.yaw = yaw; @@ -23,7 +21,5 @@ public double getYaw() { return yaw; } - public double getPitch() { - return pitch; - } + public double getPitch() { return pitch; } } diff --git a/src/main/java/competition/subsystems/vision/SimpleNoteStruct.java b/src/main/java/competition/subsystems/vision/SimpleNoteStruct.java deleted file mode 100644 index bf6921cd..00000000 --- a/src/main/java/competition/subsystems/vision/SimpleNoteStruct.java +++ /dev/null @@ -1,42 +0,0 @@ -package competition.subsystems.vision; - -import edu.wpi.first.util.struct.Struct; - -import java.nio.ByteBuffer; - -public class SimpleNoteStruct implements Struct { - @Override - public Class getTypeClass() { - return SimpleNote.class; - } - - @Override - public String getTypeString() { - return "struct:SimpleNote"; - } - - @Override - public int getSize() { - return kSizeDouble * 3; - } - - @Override - public String getSchema() { - return "double area; double yaw; double pitch"; - } - - @Override - public SimpleNote unpack(ByteBuffer byteBuffer) { - var area = byteBuffer.getDouble(); - var yaw = byteBuffer.getDouble(); - var pitch = byteBuffer.getDouble(); - return new SimpleNote(area, yaw, pitch); - } - - @Override - public void pack(ByteBuffer byteBuffer, SimpleNote simpleNote) { - byteBuffer.putDouble(simpleNote.getArea()); - byteBuffer.putDouble(simpleNote.getYaw()); - byteBuffer.putDouble(simpleNote.getPitch()); - } -} diff --git a/src/main/java/competition/subsystems/vision/VisionSubsystem.java b/src/main/java/competition/subsystems/vision/VisionSubsystem.java index 6e502a2f..89ed7dd4 100644 --- a/src/main/java/competition/subsystems/vision/VisionSubsystem.java +++ b/src/main/java/competition/subsystems/vision/VisionSubsystem.java @@ -396,10 +396,10 @@ public void periodic() { }, () -> { aKitLog.record("CenterCamLargestTargetArea", -1.0); aKitLog.record("CenterCamLargestTargetYaw", 0.0); - aKitLog.record("CenterCamLargestTargetPitch", 0.0); + aKitLog.record("CenterCamLargestTargetPitch", 0); }); - aKitLog.record("CenterlineDetections", centerlineDetections); + // aKitLog.record("CenterlineDetections", centerlineDetections); aKitLog.record("DetectedNotes", detectedNotes); aKitLog.record("PassiveDetectedNotes", passiveDetectedNotes); }