Go to Post Like Mom blending a carrot in a chocolate milkshake to get vegetables in the diet. - Foster [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 02-06-2010, 11:49 AM
bubushkinator bubushkinator is offline
Registered User
FRC #2202
 
Join Date: Feb 2010
Location: WI
Posts: 1
bubushkinator is an unknown quantity at this point
Xbox 360 Controller Rumble

We are coding on Windriver and I was just wondering if anyone figured out how to send force feedback to an Xbox 360 controller to make it rumble. Is it a simple digital output, is there something in the joystick class, or is there anything with the driver station?

Thanks for your reply.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-06-2010, 10:07 PM
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: Xbox 360 Controller Rumble

There's no built-in way I know of in the robot joystick data for information to flow back to the controller. The best option I've heard of is to use the Dashboard to talk to the game controller via DirectInput.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-06-2010, 11:44 PM
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Xbox 360 Controller Rumble

That would actually be very helpful. Like it can tell the operator if the ball is in possession with the ball-handling mechanism or it could tell the driver the robot's aligned with the target and is ready to shoot, etc. I should try that out.
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
Reply With Quote
  #4   Spotlight this post!  
Unread 02-07-2010, 12:00 AM
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,172
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Xbox 360 Controller Rumble

Is there any chance someone who figured out the XBOX controller post some code? It would really help a lot of teams out there.

Thanks,

-RC
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #5   Spotlight this post!  
Unread 02-07-2010, 12:30 AM
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Xbox 360 Controller Rumble

I've been thinking about doing something like this with our joystick. The best way to go about it, as mentioned, would be to write a custom dashboard that communicates with the joystick using DirectInput.

The problem I see is that force feedback requires acquiring the input device in an exclusive cooperative level. I'm not too familiar with DirectInput, so I'm concerned that doing this would prevent the DriverStation process from reading input. Hopefully, the DS opens it in the non-exclusive cooperative level. Maybe someone more familiar with that could chime in on this...

Regardless, I'll probably be playing around with this over the next week or two.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #6   Spotlight this post!  
Unread 02-09-2010, 03:05 PM
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
Re: Xbox 360 Controller Rumble

You have to use the Xinput library from microsoft to control the 360 controllers.

Do some research and you should find it no problem. Id give you the code i stewed up the other day but i dont have my laptop with me ATM and its on that.

Ill see if i can upload it tonight when i get home.



Anyways, if you check the microsoft website & do some research form google and you should be able to get it easy. (There are a few simple ways to control the motors. Very simple ways.)
But there is one hitch, the left motor (or possibly right. Forgot which exact one) seems to rumble a lot harder than the other one. One is soft and one is hard. You can use this to your advantage if you decide to have multiple rumble modes.

Last edited by DjMaddius : 02-09-2010 at 03:07 PM.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview 8.6: Xbox 360 wired controller Questions Lucario231 NI LabVIEW 3 01-20-2010 06:03 PM
Xbox 360 controller LabView CJBrick General Forum 12 12-17-2008 01:58 PM
xbox 360 controller installation kuelin Technical Discussion 17 01-07-2008 07:43 PM
Chicklet with MS XBOX 360 controller 354.FIRST Control System 2 04-19-2007 04:29 PM
chicklet USB/xbox 360 controller spsteam1512 Control System 1 01-10-2007 11:14 PM


All times are GMT -5. The time now is 10:37 AM.

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