Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Dashboard not working (http://www.chiefdelphi.com/forums/showthread.php?t=82054)

ygd 06-02-2010 17:38

Dashboard not working
 
I'm using Java, my code for the Dashboard looks like this:

Code:

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:

Quote:

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

Re: Dashboard not working
 
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

Re: Dashboard not working
 
Quote:

Originally Posted by Michael Schloz (Post 914853)
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

Re: Dashboard not working
 
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.


All times are GMT -5. The time now is 09:11.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi