Go to Post I think we need to take away your hammer privileges. - Katy [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 06-02-2010, 22:30
Michael Schloz Michael Schloz is offline
Registered User
FRC #1523 (M.A.R.S. Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Jupiter, Florida
Posts: 1
Michael Schloz is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2010, 20:06
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
Re: Dashboard not working

Quote:
Originally Posted by Michael Schloz View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2010, 07:16
joshholat joshholat is offline
Registered User
FRC #0930
 
Join Date: Jan 2010
Location: Mukwonago
Posts: 24
joshholat is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera working in C++ and default dashboard pafwl C/C++ 0 03-02-2010 22:06
Deploying not working bobwrit NI LabVIEW 1 16-02-2009 22:09
NI Dashboard only partially working? Tim Skloss Programming 4 05-01-2009 10:37
p2 not working? Lone_Wolf92c Programming 5 22-02-2008 08:49
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11


All times are GMT -5. The time now is 12:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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