Go to Post Our coolant system consists of a freshman with a squirt bottle. - Holtzman [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
  #16   Spotlight this post!  
Unread 27-01-2011, 10:13
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Driverstation / Dashboard in JAVA

I completely eradicated Netbeans from my computer and reinstalled... twice. Found the problem. Whatever is going on, even though my machine was claiming it had 2011.4 installed it hadn't actually updated the libraries. Got it sussed now, and yes, that line is broken.

Haven't had a chance to test the 0 byte workaround, won't be near my lab for a couple hours yet.
Reply With Quote
  #17   Spotlight this post!  
Unread 27-01-2011, 12:13
frasnow's Avatar
frasnow frasnow is offline
Software
no team
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2010
Location: Oregon
Posts: 83
frasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to behold
Re: Driverstation / Dashboard in JAVA

Quote:
Originally Posted by Joe Ross View Post
It's in the wpilib tracker http://firstforge.wpi.edu/sf/go/artf1322
Thanks Joe!
Reply With Quote
  #18   Spotlight this post!  
Unread 27-01-2011, 13:52
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Driverstation / Dashboard in JAVA

The zero byte workaround is good. You don't get a reading for the Solenoids on the dashboard, but you don't get error messages either.
Reply With Quote
  #19   Spotlight this post!  
Unread 27-01-2011, 18:00
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Driverstation / Dashboard in JAVA

With version 2011.4 I observed that the posted dashboard code does not properly map the digital i/o pins on the sidecar to the leds on the dashboard gpio state and gpio output enable. First two leds are always off and led 3 maps to digital i/o 14. i/o 1 and 2 do not change any led on the dashboard.

The following code works properly:

Code:
                        
                        int dioData = 0;
                        for( int i = 1; i <= 14; i++)
                        {
                            if( DigitalModule.getInstance( module ).getDIO( i ) )
                            {
                                dioData |= ( 1 << i-1 );
                            }
                        }
                        lowDashData.addShort((short)dioData);
                        int dioDir = 0;
                        for( int i = 1; i <= 14; i++)
                        {
                            if( DigitalModule.getInstance( module ).getDIODirection( i ) )
                            {
                                dioDir |= ( 1 << i-1 );
                            }
                        }
                        lowDashData.addShort((short)dioDir);
There seems to be a problem with getAllDIO() and getDIODirection().
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
Reply With Quote
  #20   Spotlight this post!  
Unread 28-01-2011, 19:00
TPNigl TPNigl is offline
Registered User
FRC #0069 (Team HYPER)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Quincy, MA
Posts: 94
TPNigl is an unknown quantity at this point
Re: Driverstation / Dashboard in JAVA

We are getting the problem that it is looking for v_20 and we already updated to v_25. We tried the above code and everything worked except the version error. Any ideas?
__________________


2011 Pit Crew:
2011 CT Xerox Creativity Award

HYPER Alumni
Reply With Quote
  #21   Spotlight this post!  
Unread 28-01-2011, 19:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Driverstation / Dashboard in JAVA

Quote:
Originally Posted by TPNigl View Post
We are getting the problem that it is looking for v_20 and we already updated to v_25. We tried the above code and everything worked except the version error. Any ideas?
It sounds like you didn't install the 2011 version of the java plugins.
Reply With Quote
  #22   Spotlight this post!  
Unread 29-01-2011, 12:07
DCRich DCRich is offline
Mentor
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Steinert H.S., Hamilton NJ
Posts: 21
DCRich is an unknown quantity at this point
Re: Driverstation / Dashboard in JAVA

We rev'd back to 2011.3 and the dashboard is now working!

Ughh how much time we have wasted :-(
Reply With Quote
  #23   Spotlight this post!  
Unread 29-01-2011, 14:01
frasnow's Avatar
frasnow frasnow is offline
Software
no team
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2010
Location: Oregon
Posts: 83
frasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to behold
Re: Driverstation / Dashboard in JAVA

Quote:
Originally Posted by DCRich View Post
Ughh how much time we have wasted :-(
Yeah, I'm really upset about the lack of proper testing on 2011.4. We're supposed to be teaching the students good programming practices. Releasing something that breaks example code and not fixing it quickly is pretty bad.

Does anyone know if using the latest is required at events?
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


All times are GMT -5. The time now is 10:34.

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