Go to Post F.I.R.S.T. Troubleshooting Rule #1 - If you work on software, the problem is always with hardware. If you work with hardware, the problem is always with software ;) - Redneck [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 23-02-2011, 08:16
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Re: Dashboard Tutorial fro Java Pls :)

A further note on this, and a question on LabView programming ...

(1) If you use any of the default Dashboard (namely the display of the digitial stuff from the sidecars) - it turns out that the WPI code returns the DIO data in FPGA order, not laptop display order. So you end up displaying 2 bits (14 & 15) that mean nothing, don't display 2 bits (0 & 1) and everything else is in reverse order. Since I'm not a LabView programmer, I put the code in Java on the robot to reverse the bits in this set of calls (after I get the data and before I add it):

lowDashData.addShort(DigitalModule.getInstance(mod ule).getAllDIO());
lowDashData.addShort(DigitalModule.getInstance(mod ule).getDIODirection());

(2) Now my question ... we are using two digitial sidecars this year, and although the code appears to get the data (from module 4 and module 6), the default(?) display only displays module 4. We were able to get all our custom data wired into the display, but haven't been able to figure out yet how to create a copy of the module 4 display and wire it to the second set of data in the cluster / array. Our team has zero experience with LabView (other than what we've managed to do in the last six weeks). I can see the building blocks in the wiring diagram, and more or less understand what it's doing (to convert the cluster to the array, and then extract the data with an index selector). But if someone could point me to an example or give a hint on how to wire / extract the second module, and get it displayed with the same UI stuff in the dashaboard, I'd appreciate it.

Thanks!
Reply With Quote
 


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


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

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