|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
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. |
|
#17
|
||||
|
||||
|
Re: Driverstation / Dashboard in JAVA
Quote:
|
|
#18
|
|||
|
|||
|
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.
|
|
#19
|
|||
|
|||
|
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);
|
|
#20
|
|||
|
|||
|
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?
|
|
#21
|
||||||
|
||||||
|
Re: Driverstation / Dashboard in JAVA
It sounds like you didn't install the 2011 version of the java plugins.
|
|
#22
|
|||
|
|||
|
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 :-( |
|
#23
|
||||
|
||||
|
Re: Driverstation / Dashboard in JAVA
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|