limelight helpers

This commit is contained in:
Antoine 2024-10-30 18:56:31 -04:00
parent 48a4f2e0f4
commit e9f55c9fd6

View File

@ -4,6 +4,7 @@
package frc.robot.Subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
@ -14,6 +15,8 @@ NetworkTableEntry tx = table.getEntry("tx");
NetworkTableEntry ty = table.getEntry("ty");
NetworkTableEntry ta = table.getEntry("ta");
//read values periodically
double x = tx.getDouble(0.0);
double y = ty.getDouble(0.0);