No matter what I try, I can’t get our pi coprocessor to connect its network tables to the roborio’s server. My console output at http://wpilibpi.local/ says NT: client: CONNECTED to server 10.59.80.2 port 1735
, but the network table values in SmartDashboard won’t change. If someone could point me in the right direction, any help is appreciated.
My pi code (the y value just increases forever so I know something’s connected):
Main.java (3.1 KB)
My roborio code:
public static double centerX = 0.0;
NetworkTableEntry xEntry;
NetworkTableEntry yEntry;
public static NetworkTable table = NetworkTableInstance.getDefault().getTable("datatable");
@Override
public void robotPeriodic() {
____SmartDashboard.putNumber("centerX", table.getEntry("X").getDouble(0.0));
____SmartDashboard.putNumber("y val", table.getEntry("Y").getDouble(0.0));
}