// 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 frc.robot.subsystems; import org.photonvision.common.hardware.VisionLEDMode; import edu.wpi.first.networktables.NetworkTableEntry; import edu.wpi.first.networktables.NetworkTableInstance; import edu.wpi.first.wpilibj2.command.SubsystemBase; public class limelight extends SubsystemBase { public NetworkTableEntry tv = NetworkTableInstance.getDefault().getTable("limelight").getEntry("tv"); limelight limelight = new limelight(); /** Creates a new limelight. */ public limelight() {} /*public void lumiere(){ limelight.setLED(VisionLEDMode.kOff); limelight.setPipelineIndex(0); }*/ /*public double getYaw() { var result = limelight.getLatestResult(); if(result.hasTargets()){ return -result.getBestTarget().getYaw()/45; } return 0;}*/ @Override public void periodic() { // This method will be called once per scheduler run } }