Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Driverstation / Dashboard in JAVA (http://www.chiefdelphi.com/forums/showthread.php?t=90065)

wdell 27-01-2011 10:13

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.

frasnow 27-01-2011 12:13

Re: Driverstation / Dashboard in JAVA
 
Quote:

Originally Posted by Joe Ross (Post 1009614)
It's in the wpilib tracker http://firstforge.wpi.edu/sf/go/artf1322

Thanks Joe!

wdell 27-01-2011 13:52

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.

charrisTTI 27-01-2011 18:00

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().

TPNigl 28-01-2011 19:00

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?

Joe Ross 28-01-2011 19:08

Re: Driverstation / Dashboard in JAVA
 
Quote:

Originally Posted by TPNigl (Post 1010644)
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.

DCRich 29-01-2011 12:07

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 :-(

frasnow 29-01-2011 14:01

Re: Driverstation / Dashboard in JAVA
 
Quote:

Originally Posted by DCRich (Post 1011033)
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?


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

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