Subsystem
This commit is contained in:
parent
30421c381a
commit
35c4873f43
|
|
@ -16,16 +16,5 @@
|
||||||
<classpathentry kind="src" path="build/generated/sources/annotationProcessor/java/main"/>
|
<classpathentry kind="src" path="build/generated/sources/annotationProcessor/java/main"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
||||||
<classpathentry kind="src" path="bin/generated-sources/annotations">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="src" output="bin/test" path="bin/generated-test-sources/annotations">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="test" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="output" path="bin/default"/>
|
<classpathentry kind="output" path="bin/default"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue