mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
|
||
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||
|
|
/* the project. */
|
||
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
package frc4388.robot.subsystems;
|
||
|
|
|
||
|
|
import edu.wpi.first.networktables.NetworkTableInstance;
|
||
|
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||
|
|
|
||
|
|
public class LimeLight extends SubsystemBase {
|
||
|
|
/**
|
||
|
|
* Creates a new LimeLight.
|
||
|
|
*/
|
||
|
|
public LimeLight() {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public static void limeOff(){
|
||
|
|
NetworkTableInstance.getDefault().getTable("limelight").getEntry("camMode").setNumber(1);
|
||
|
|
NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
public static void limeOn(){
|
||
|
|
NetworkTableInstance.getDefault().getTable("limelight").getEntry("camMode").setNumber(0);
|
||
|
|
NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(3);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void periodic() {
|
||
|
|
// This method will be called once per scheduler run
|
||
|
|
}
|
||
|
|
}
|