Go to Post After all, professional engineers know The Right Way To Do It (TM) and if we knew that we'd be deprived of the educational experience of screwing up. - phrontist [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 11-02-2011, 19:41
MrEldritch MrEldritch is offline
Registered User
FRC #0585
 
Join Date: Feb 2011
Location: Tehachapi, California, US, Sol III.
Posts: 5
MrEldritch is an unknown quantity at this point
Question Connecting non-joystick control components

How do we do this? Specifically, the device I wish to connect is a USB device- a Belkin n52te gamepad.



Now, it's a USB device, so connecting it physically to the computer isn't a problem. My question- how do we alter the /program/ to take its data? In other words, how do I interface the robot with it as if it were a device like the stop button or joystick? What action do I have to take in the robot code?

If this is a question that belongs in the programming subforum, please let me know.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2011, 23:50
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,113
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: Connecting non-joystick control components

If a device presents itself as an HID game controller, it will work with the FRC Driver Station and its status will be communicated to the robot. A mouse or keyboard won't do anything useful for controlling the robot.

From the brief look I just took at the documentation, the Belkin N52TE actually appears as two joystick-like devices plus a keyboard and a mouse. The special driver software that comes with it lets you configure keyboard/mouse macros to correspond to its buttons, which isn't helpful for our purposes. I think it would take quite a bit of custom Windows driver programming to make it function in a way that would work with the Driver Station in a useful fashion.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2011, 18:27
MrEldritch MrEldritch is offline
Registered User
FRC #0585
 
Join Date: Feb 2011
Location: Tehachapi, California, US, Sol III.
Posts: 5
MrEldritch is an unknown quantity at this point
Re: Connecting non-joystick control components

Oh, bleep.
Well, is there any way to hook up a non-joystick control component? Could we simply build our own arrangement of buttons and attach it?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2011, 18:31
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,582
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Connecting non-joystick control components

You can connect your own buttons and potentiometers to the cypress module included in your kit last year, or to an eStop Robotics CCI.

Like Alan said, if it identifies itself as a HID game controller, it will work. We've used joysticks, gamepads, and steering wheels in the past.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2011, 21:19
MrEldritch MrEldritch is offline
Registered User
FRC #0585
 
Join Date: Feb 2011
Location: Tehachapi, California, US, Sol III.
Posts: 5
MrEldritch is an unknown quantity at this point
Re: Connecting non-joystick control components

As I am /completely/ inexperienced, if it DOES show up as an HID Game Controller, how do we use it? Do we just call it with the Joystick stuff?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2011, 21:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,582
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Connecting non-joystick control components

Quote:
Originally Posted by MrEldritch View Post
As I am /completely/ inexperienced, if it DOES show up as an HID Game Controller, how do we use it? Do we just call it with the Joystick stuff?
Yes.
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 16:51.

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