View Single Post
  #1   Spotlight this post!  
Unread 06-02-2010, 17:38
ygd ygd is offline
Registered User
FRC #3341 (Manhattan Project)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: San Diego
Posts: 26
ygd is an unknown quantity at this point
Question 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?
Reply With Quote