pid d`édouard
This commit is contained in:
@@ -20,8 +20,15 @@ public class Limelight3 extends SubsystemBase {
|
||||
PortForwarder.add(port, "limelight.local", port);
|
||||
}
|
||||
}
|
||||
public double getX(){
|
||||
return LimelightHelpers.getTX("limelight-balon");
|
||||
public double getTx(){
|
||||
NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight-balon");
|
||||
NetworkTableEntry tx = table.getEntry("tx");
|
||||
return tx.getDouble(0.0);
|
||||
}
|
||||
public double getRx(){
|
||||
NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight-balon");
|
||||
NetworkTableEntry rx = table.getEntry("rx");
|
||||
return rx.getDouble(0.0);
|
||||
}
|
||||
public boolean getV(){
|
||||
return LimelightHelpers.getTV("limelight-balon");
|
||||
|
||||
Reference in New Issue
Block a user