Go to Post I would have bought a bigger box of popcorn and sat up higher in the stands. In the middle. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2011, 22:43
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Using a Keyboard on the Drivers Station

Is it possible to use a keyboard on the drivers station and if so how would the computer recognize it? as a Joystick or what?
Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2011, 23:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

The Driver Station only reads HID (joysticks, gamepads, and the like) devices and the Cypress PSoC for data to pass on to the robot.

A keyboard will be able to enable (F1) and disable (space) the robot, to activate the emergency stop (control-alt-enter, I think), and do whatever else Windows recognizes. You might be able to program a Dashboard to read the keyboard and pass information on to the robot for it to act on, but <R75> doesn't clearly permit you to do that during competition.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2011, 23:17
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Re: Using a Keyboard on the Drivers Station

Ok, thanks for the help.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2011, 08:26
MaxMax161's Avatar
MaxMax161 MaxMax161 is offline
Allegedly Useful
AKA: Max Llewellyn
FRC #2791 (Shaker Robotics), FRC #1676 (Pascack π-oneers)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Montvale NJ\Troy NY
Posts: 174
MaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

I once saw a team use a guitar hero controller to control their robot so I assume that <R75> allows other controllers and a keyboard would be included in that, however because you would need to use not WPI .VIs there might be a problem there.

Edit: I looked over the rules again and I don't see anything that would stop you from using the built in LabVIEW stuff and not the WPI .VIs.

As for using it on a technical side getting the keyboard to communicate with LabVIEW is easy but turning that input in to robot actions isn't as easy. There is a menu system under "connectivity" that holds all the .VIs you would need to connect anything from a mouse to a keyboard to a joystick to LabVIEW without using any WPI stuff. The only thing that could make your life harder is that LabVIEW interprets keyboard input as an array of characters with the last button pressed in the 0 index, 2nd to last in the 1 index, and so on. Good luck with whatever you choose.
__________________
2791 Shaker Robotics (2013-present)
--Control Systems Mentor 2013-present
--Drive coach 2015-present

1676 The Pascack π-oneers (2010-2013)
--Drive coach 2011-2013
--Lead Programmer 2011-2013

Last edited by MaxMax161 : 01-02-2011 at 08:32. Reason: Found more information
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2011, 08:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

Quote:
Originally Posted by MaxMax161 View Post
I looked over the rules again and I don't see anything that would stop you from using the built in LabVIEW stuff and not the WPI .VIs.
The built in LabVIEW stuff expects to be running on a computer with a keyboard, not on a cRIO. Unless I'm overlooking something fundamental, it won't give you the ability to read the Driver Station's keyboard from the robot.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2011, 09:01
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,624
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

Hmm, we need to work on a keyboard-to-joystick API during this next offseason then. Pushing buttons on a joystick is ridiculous when COTS items like THIS would make year-to-year robotics much more intuitive. After all, many robots spend more time driving off of the field than on it (such as robot demos, etc).
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2011, 10:02
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

Quote:
Originally Posted by JesseK View Post
Hmm, we need to work on a keyboard-to-joystick API during this next offseason then.
There are already several. They have been mentioned in other similar threads. Search the web for "virtual joystick" utilities.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2011, 11:43
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,624
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Using a Keyboard on the Drivers Station

Thanks Alan. After looking into it, if the 'keyboard' mapped to 'joystick' functions that then went through the normal Driver's Station software (i.e. didn't try to go directly to the robot), I can't tell if that breaks <R75> or not since it's a 1:1 mapping and not a collation/redirection to the robot (similar to the way the HID drivers work).

I'll Q&A it.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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