limelight helpers
This commit is contained in:
parent
48a4f2e0f4
commit
e9f55c9fd6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user