FIRST Forums  

Go Back   FIRST Forums > General Discussions > FIRST Programs > FIRST Robotics Competition > Competition Discussion > Programming > C/C++

Reply
 
Thread Tools
  #1  
Old 01-30-2010, 02:52 PM
mjcoss mjcoss is offline
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default Changing data sent from driver station to CRIO

I have a USB device connected to the driver station. It's a HID device and while it did require that I install the driver to get the Classmate to really see the device, after installing the driver, the driver station display showed the device, and part of it is working like a joystick but ultimately I need to extend the data that is being sent by some amount. Not a lot of extra data but some. Or do we have to try and get the driver station software to see our extra data as joystick like event?

The data collection and packetization is clearly happening on the Classmate, and is then sent to the CRIO, which processes the packets.

I see in the library code a call to getCommonControlData(), but cant find the source code.

It looks to me like you'd need to modify both the code on the driver station and on the CRIO.

Is this possible? Permissible under the rules? Where would I find the source code that implements this?

Thanks
Reply With Quote
  #2  
Old 01-30-2010, 09:42 PM
heydowns heydowns is offline
Member
 
Join Date: Jan 2009
Posts: 35
Default Re: Changing data sent from driver station to CRIO

Quote:
Originally Posted by mjcoss View Post
Is this possible? Permissible under the rules? Where would I find the source code that implements this?
I doubt that any modifications to the driver station software would be legal. The DS software, the FIRST-oriented cRIO network routines, and the network protocol that tie them together are standard for all teams to keep the playing field level.

Can you provide information on the device you are having trouble with? Manufacturer, model number, and what aspects of the device are not being recognized by the driver's station software?
Someone may be able to help out in reaching your desired goal.
Reply With Quote
  #3  
Old 02-01-2010, 12:35 PM
mjcoss mjcoss is offline
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default Re: Changing data sent from driver station to CRIO

The device is a logitech G13 keypad. It has a thumb joystick, and a number of scriptable/programmable keys. The joystick is picked up so I can get X/Y axis information, but the keys are silent. I assume that the DS code is collecting the joystick information, and packaging it up into the packets that it sends to the CRIO. Further that the data collection is only looking for "joystick" like devices and maps the collected data into a joystick structure. The issue is that getting the keypad to pretend that pressing a key is equivalent to a joystick buttons doesn't quite work, I can make it pretend to be a mouse button but no luck so far with getting the DS to see the key press events. I found a joystick emulator, but that clearly will be outside the rules in that it would require a separate application to be run is driver mode to provide the emulation.

Ultimately, I'd like to customize the data sent to the CRIO while leaving the majority of the framework intact.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver Station Missing 'nicyapi.dll' Issue nealpatel Operator Console 1 01-24-2010 11:15 AM
Installing Driver Station on Development Computer Chris Varner Operator Console 1 01-24-2010 03:17 AM
Setting up a spare 2010 driver station TTTT Operator Console 1 01-17-2010 04:41 PM
LabVIEW and Driver station interaction jimc2550 LabView 1 01-16-2010 08:31 PM


All times are GMT -4. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.