Hi all, maybe you can shed some light on my problem. I seem to not be able to send data to the SmartDashboard.
I'm writing this year's code in Java, here is the code I am attempting to run:
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;
public class RobotTemplate extends SimpleRobot {
public void autonomous() {System.out.println("test");
SmartDashboard.putDouble("joyAngle", 7.0);
}
public void operatorControl() { }
}
I deploy this code and run "C:\Program Files\FRC Dashboard\Launcher.bat". If I add a Connection Indicator it stays red regardless of all my attempts to connect it.
If I write the code using the SmartDashboard vi's in LabView (by changing the sample Dashboard), the labView will show the battery level, so it has some type of connection, but using the Get SmartDashboard Number function, I can't access the Network Table.
Although if I call Set SmartDashboard Number and Get SmartDashboard Number both on the LabView Dashboard, I can access the previously set value. Same if I do it in the Java code on the robot.
It seems to me that the two SmartDashboards can't connect, which makes sense with the network indicator indicating the way it does.
Do you guys have any suggestions?