|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Driver Interface
I believe that connecting another device to the 2nd ethernet port on the cRIO is legal provided that you can come up with a switch that runs off robot power. You should check the rules yourself to be sure.
Given that, I'd expect that the cRIO might have trouble doing image processing from two cameras at the same time depending on what operations your're performing. The problem with doing that is that the AxisCamera class is currently a singleton, meaning that it assumes that there is only a single camera connected. It might be that this can be changed in an update so that multiple cameras can be supported or it might be something that you can look at. As for the question of modifying the dashbaord program... the source code is available as a LabVIEW application. You can modify it as needed. You have to be careful to keep the data in sync between the robot and dashboards ends. You can look at both samples to see how this works. |
|
#2
|
|||
|
|||
|
Re: Driver Interface
For those of you using NetBeans as an IDE. Create a new project, go to samples, then Java FRC, then pick DashboardExample(possibly slightly out of order). The methods used there will interface with the Dashboard which I believe is LabView based. The basic code supplied there should give you some visual feedback when the driver station is set to tel-op with your analog, digital, io stuff(if I remember correctly). One of the other programmers on my team will be posting that details this code in a tank drive type robot. You can also look at the example code that FIRST provided for dealing with target recognition. It is example code that is used for recognizing Lunacy targets but you should get the general idea of how the AxisCamera is used and how it displays images on the driver station. Hope this helps any and all who are looking for help dealing with the Dashboard. Keep a lookout for a post that has example code that we have prepared for the forums.
- James D |
|
#3
|
|||
|
|||
|
Re: Driver Interface
sort of out of topic.
we updated our dashboard and now only the lower panel shows up. is this normal or do we have a problem? |
|
#4
|
|||
|
|||
|
Re: Driver Interface
That is a problem. If you had this after running code, then you may have a coding error which may end up causing the dashboard to not appear. However, the more likely case is that there was an error during your last install. Did you by any chance use the update installer or did you do an entire install of the WBILib and Dashboard combined?
|
|
#5
|
|||
|
|||
|
Re: Driver Interface
Just to clarify, the driver station is closed, but can run and communicate to a locally running dashboard that defaults to running on the upper portion of the screen, or communicating to a remote dashboard. These dashboards can indeed be written in any language you like. I'm not sure what templates are out there, but the LV sample code wizard will produce the source for the default dashboard.
To launch a custom dashboard, either name it the same and place it in the same location as the default (Program Files\FRC Dashboard\Dashboard.exe) -- I think that is the location. Another option is to modify the All Users\Documents\FRC DS Data Storage.ini and set the DashboardCmdLine to point to your new EXE. Greg McKaskle |
|
#6
|
|||||
|
|||||
|
Re: Driver Interface
Quote:
|
|
#7
|
|||
|
|||
|
Re: Driver Interface
The cmd line in the ini file was blank. I tried setting it to "C:\Program Files\FRC Dashboard\Dashboard.exe" But it still wont come up OR it may be comming up minimized. the update disables alt-tab so i cannot bring it up
EDIT Scratch the disabled alt tab it does work its just not launching the software EDIT Figured it out . . . gotta double backslash the commands "C:\\Program Files\\FRC Dashboard\\Dashboard.exe" Last edited by drakesword : 17-01-2010 at 00:15. |
|
#8
|
|||
|
|||
|
Re: Driver Interface
Quote:
- James D |
|
#9
|
|||
|
|||
|
Re: Driver Interface
This is essentially what the video to dashboard server on the cRIO does. The JPEGs from the camera are not recompressed... they are simply forwarded on.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2010 Driver Station Netbook Driver Account and Java | joshholat | FRC Control System | 2 | 10-01-2010 15:04 |
| Serial Driver and 2K6 Encoder Driver Not compatible | Tom Bottiglieri | Programming | 6 | 12-02-2006 01:11 |
| Operator interface/Driver Control board | sgsdragons | Robot Showcase | 4 | 07-03-2005 08:58 |
| Driver interface | Wayne Doenges | Control System | 7 | 16-02-2005 16:38 |
| operator interface | tml240 | Electrical | 5 | 10-02-2004 17:50 |