Log in

View Full Version : Dashboard not working


ygd
06-02-2010, 17:38
I'm using Java, my code for the Dashboard looks like this:

Dashboard lowDashData = DriverStation.getInstance().getDashboardPackerLow( );

lowDashData.addCluster(); {
lowDashData.addCluster(); {
lowDashData.addDouble(j1.getX());
lowDashData.addDouble(j1.getY());
} lowDashData.finalizeCluster();

lowDashData.addCluster(); {
lowDashData.addDouble(j2.getX());
lowDashData.addDouble(j2.getY());
} lowDashData.finalizeCluster();
} lowDashData.finalizeCluster();

lowDashData.commit();
System.out.println("Dashboard updated");

Where j1 is the left joystick and j2 is the right joystick.

When I run my code, this shows up on the classmate:

Warning: The Dasboard Datatype used thy the robot project and this dashboard do not match. See Diagram for more details.

What's going on here and how can I fix it?

Michael Schloz
06-02-2010, 22:30
You need to make sure you are packing your clusters up in the correct order to the dashboard. If you are using the one that FIRST provided, go in to labview and check it out to make sure you are packing every thing correctly.

ygd
10-02-2010, 20:06
You need to make sure you are packing your clusters up in the correct order to the dashboard. If you are using the one that FIRST provided, go in to labview and check it out to make sure you are packing every thing correctly.

How do I do that? I have no idea how to use LabView.

joshholat
11-02-2010, 07:16
You have to make a new LabView Dashboard project that takes the same amount of inputs into LabView that you are outputting from Java. Use LabView 8.6 on the disc that you got from the FRC KOP. The Dashboard project comes standard. Then you basically remove the inputs from the default project that you don't need and add your own (graphs, LEDs, etc).

Also, we did get that error commonly, too. If you've already made a new Dashboard project, that error is usually from the camera because I don't believe you can use the camera during competition. At least not for sending video to the Dashboard, but it is available for tracking.