From 35c4873f435ace85daaf53555a452b3141c0867f Mon Sep 17 00:00:00 2001 From: TheRealGrayden Date: Sat, 21 Mar 2026 13:27:36 -0400 Subject: [PATCH] Subsystem --- lib/.classpath | 11 ----- .../vision/limelight/LimelightSubsystem.java | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 lib/src/main/java/org/fairportrobotics/frc/robolib/vision/limelight/LimelightSubsystem.java diff --git a/lib/.classpath b/lib/.classpath index efc1d29..a99ea3b 100644 --- a/lib/.classpath +++ b/lib/.classpath @@ -16,16 +16,5 @@ - - - - - - - - - - - diff --git a/lib/src/main/java/org/fairportrobotics/frc/robolib/vision/limelight/LimelightSubsystem.java b/lib/src/main/java/org/fairportrobotics/frc/robolib/vision/limelight/LimelightSubsystem.java new file mode 100644 index 0000000..5eb79c2 --- /dev/null +++ b/lib/src/main/java/org/fairportrobotics/frc/robolib/vision/limelight/LimelightSubsystem.java @@ -0,0 +1,47 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +package org.fairportrobotics.frc.robolib.vision.limelight; + +import edu.wpi.first.wpilibj2.command.Command; +import edu.wpi.first.wpilibj2.command.SubsystemBase; + +public class LimelightSubsystem extends SubsystemBase { + /** Creates a new ExampleSubsystem. */ + public LimelightSubsystem() {} + + /** + * Example command factory method. + * + * @return a command + */ + public Command exampleMethodCommand() { + // Inline construction of command goes here. + // Subsystem::RunOnce implicitly requires `this` subsystem. + return runOnce( + () -> { + /* one-time action goes here */ + }); + } + + /** + * An example method querying a boolean state of the subsystem (for example, a digital sensor). + * + * @return value of some boolean subsystem state, such as a digital sensor. + */ + public boolean exampleCondition() { + // Query some boolean state, such as a digital sensor. + return false; + } + + @Override + public void periodic() { + // This method will be called once per scheduler run + } + + @Override + public void simulationPeriodic() { + // This method will be called once per scheduler run during simulation + } +}