This commit is contained in:
aarav18
2021-09-22 17:37:36 -06:00
parent 7061b7206d
commit c7fcf1d30f
@@ -64,6 +64,9 @@ public class TrackTarget extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
NetworkTableInstance.getDefault().getTable("limelight").getEntry("camMode").setNumber(0);
NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(3);
m_limeLight.changePipeline(0);
target = NetworkTableInstance.getDefault().getTable("limelight").getEntry("tv").getDouble(0);
xAngle = NetworkTableInstance.getDefault().getTable("limelight").getEntry("tx").getDouble(0);
yAngle = NetworkTableInstance.getDefault().getTable("limelight").getEntry("ty").getDouble(0);