A Java library that wraps the Limelight API. This library was intended to be an easy replacement to the NetworkTables API.
Limelight
object that you can easily push and pull data from and to.
Written in Java by Java developers, JLimelight takes advantage of the Java language and follows all the
conventions of Java libraries. This makes for seamless integration with your Java robotics projects.To include JLimelight in your robot project, you can either:
vendordeps
folder.Vendor dependency URL : https://maven.bancino.net/JLimelight.json
Usage of this library is simple, all you have to do is create a Limelight
object whereever you create
your subsystems. We typically do it right in our Robot.java
, or we create a static
Subsystems
class.
import net.bancino.robotics.jlimelight.Limelight;
/* ... */
Limelight limelight = new Limelight();
Then you can access limelight methods such as:
if (limelight.hasValidTargets()) {
double area = limelight.getTargetArea();
}
See, it's easy!
Make sure you check out the JavaDoc for complete usage. You can view the Javadoc here, or build it by running
gradle javadoc
and then reference build/docs/javadoc/index.html
.