|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: outputting data to DS's usermessage
i see, I just needed to know the class name where I needed to get the functions from. So just use the functions from DriverStationLCD correct? Thanks x]
|
|
#17
|
|||
|
|||
|
Re: outputting data to DS's usermessage
Code:
DriverStationLCD *myDS_LCD = DriverStationLCD::GetInstance(); |
|
#18
|
|||
|
|||
|
Re: outputting data to DS's usermessage
Quote:
Brian |
|
#19
|
|||
|
|||
|
Re: outputting data to DS's usermessage
Yeah there is a bug in WPILib right now that crashes any user code trying to get a DriverStationLCD. If you revert to the version released at the beginning of the season you should be able to use it until a fix is released. Just download the old workbench update and install it
|
|
#20
|
|||
|
|||
|
Re: outputting data to DS's usermessage
There seems to have been a compiler or linker bug that was causing a static const int variable to not initialize correctly that just started happening. I posed a new version here:
http://first.wpi.edu/FRC/frccupdates.html That seems to fix the problem. That's the only change in this version so there's no need to update if you aren't using the DriverStationLCD class. |
|
#21
|
|||
|
|||
|
Re: outputting data to DS's usermessage
Quote:
BC |
|
#22
|
||||||
|
||||||
|
Re: outputting data to DS's usermessage
Quote:
|
|
#23
|
|||
|
|||
|
Re: outputting data to DS's usermessage
The fix works but breaks the Camera. LCD is working great.
|
|
#24
|
||||
|
||||
|
Re: outputting data to DS's usermessage
We had the same problem so we replaced each instance of kLineLength with 21 in WPiLib and recompiled WPiLib. Not an ideal solution but it works. We have to modify WPiLib anyway to fix other problems and to get it to calibrate the gyro and one of the accelerometers in parallel and added a method so we could get the gyro rate to support a closed loop "arc turn".
I am still interested in seeing an example of how to use the Printf function to print to the dashboard user data so we can use the logging function since we are using the serial port for the jag CAN bus, not the driver station LCD. When we try to add the Printf output to the high or low priority dashboard packer we get errors in the DS display. I guess it's time to bite the bullet and figure out exactly how the data structures are configured. Does anyone know if there is documentation on this besides looking at the DS labview code? Thanks, Greg |
|
#25
|
|||
|
|||
|
Re: outputting data to DS's usermessage
Quote:
-Joe |
|
#26
|
||||
|
||||
|
Re: outputting data to DS's usermessage
Quote:
How do you wait for a new DS packet? |
|
#27
|
|||
|
|||
|
Re: outputting data to DS's usermessage
You can call IsNewControlData() on the DriverStation object.
Generally this shouldn't be necessary for this use case since usually the dashboard is expecting one or the other... so your robot program should only be using one or the other. The only case I can see where you would use this is if you would like to print one set of messages each time a packet goes out, then you could use this to tell when that happens. -Joe |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Voltage not outputting to the Drivers Station | Ryutso | Electrical | 8 | 09-02-2010 11:39 |
| Periodic Task Data --> Robot Data | Kahn! | NI LabVIEW | 3 | 10-02-2009 19:38 |
| Sending user data, parsing user data. | demosthenes2k8 | NI LabVIEW | 3 | 30-01-2009 13:51 |
| PWMs not outputting in Autonomous | 937Programmers | Programming | 15 | 08-02-2007 21:25 |