From e72a23fdde21208eb352ed7095fb7b2889b47b11 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Tue, 6 Feb 2024 18:48:33 -0500 Subject: [PATCH] Pixy --- src/main/java/frc/robot/PixyException.java | 8 ++++++++ src/main/java/frc/robot/PixyPacket.java | 9 +++++++++ src/main/java/frc/robot/subsystem/Pixy.java | 1 - 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/main/java/frc/robot/PixyException.java create mode 100644 src/main/java/frc/robot/PixyPacket.java diff --git a/src/main/java/frc/robot/PixyException.java b/src/main/java/frc/robot/PixyException.java new file mode 100644 index 0000000..c4fd3c0 --- /dev/null +++ b/src/main/java/frc/robot/PixyException.java @@ -0,0 +1,8 @@ +package frc.robot; + +public class PixyException extends Exception { + public PixyException(String message){ + super(message); + } + +} diff --git a/src/main/java/frc/robot/PixyPacket.java b/src/main/java/frc/robot/PixyPacket.java new file mode 100644 index 0000000..d52adfe --- /dev/null +++ b/src/main/java/frc/robot/PixyPacket.java @@ -0,0 +1,9 @@ +package frc.robot; + +public class PixyPacket { + public int X; + public int Y; + public int Width; + public int Height; + +} diff --git a/src/main/java/frc/robot/subsystem/Pixy.java b/src/main/java/frc/robot/subsystem/Pixy.java index f56c0d2..468a421 100644 --- a/src/main/java/frc/robot/subsystem/Pixy.java +++ b/src/main/java/frc/robot/subsystem/Pixy.java @@ -7,7 +7,6 @@ package frc.robot.subsystem; import edu.wpi.first.wpilibj2.command.SubsystemBase; public class Pixy extends SubsystemBase { - /** Creates a new Pixy. */ public Pixy() {}