Go to Post Try to remember, FIRST is like life, it is about the journey not the destination. - rees2001 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-04-2014, 20:45
RaptorMike RaptorMike is offline
Robo Raptors - 3650
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Maryland
Posts: 1
RaptorMike is an unknown quantity at this point
xBox Controller Feedback, of sorts

We are going to be taking out robot to some demonstrations, and I have implemented a half power drive train, so the kids have time to jump out of the way of their friends driving, and I also have an override so that we, the team, can drive it to its full potential. We are using an xBox 360 controller, and one of the mentors thought it would be cool if there was a way to have the lights around the xBox button to light up when we have the overdrive toggled on. Any help is appreciated. Thanks in advance.
->Mike
  #2   Spotlight this post!  
Unread 14-04-2014, 21:18
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Re: xBox Controller Feedback, of sorts

As far as I know the light ring is controlled by the USB hub on the computer and is inaccessible through any FRC programming. Perhaps there is third-party software that allows you to manipulate the lights? Quick googling hasn't come up with anything, but there might be something that I'm missing. I doubt you could interface with your robot code unfortunately. Maybe I'm unimaginative?
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
  #3   Spotlight this post!  
Unread 15-04-2014, 01:46
JamesTerm's Avatar
JamesTerm JamesTerm is offline
Terminator
AKA: James Killian
FRC #3481 (Bronc Botz)
Team Role: Engineer
 
Join Date: May 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 298
JamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to behold
Re: xBox Controller Feedback, of sorts

Quote:
Originally Posted by Iaquinto.Joe View Post
As far as I know the light ring is controlled by the USB hub on the computer and is inaccessible through any FRC programming.
I'd say inaccessible through any programming... or any programming short of making some hardware modification and rebuilding drivers for that mod. I found this link and the "ring of light" for the "guide" button appears to be triggered by internal events outside the scope of xinput, direct input, or HID. If anyone figures out how to manipulate this... my hat is off to you.
  #4   Spotlight this post!  
Unread 15-04-2014, 02:48
Redo91's Avatar
Redo91 Redo91 is offline
Registered User
AKA: Justin
no team
Team Role: Engineer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Carlsbad
Posts: 149
Redo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of light
Re: xBox Controller Feedback, of sorts

I made a quick look though here. It seems the light configuration is set automatically by the driver/API. The only thing I saw that could be controlled was the vibration function.
__________________
Team 1296-Full Metal Jackets
Alumni 2009
Mentor 2009-2014

Team 624-CRyptonite
Mentor 2014-2015
  #5   Spotlight this post!  
Unread 15-04-2014, 10:41
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: xBox Controller Feedback, of sorts

We've read controller values directly in the LabView dashboard, although we did have some issues which may or may not have been related. LabView gives you the ability to communicate over teh USB interface so you may be able to do it through that method.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #6   Spotlight this post!  
Unread 15-04-2014, 15:02
MDAWG25's Avatar
MDAWG25 MDAWG25 is offline
FRC Capability Developer LabVIEW
AKA: Matt
FRC #2614 (MARS)
Team Role: Engineer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Morgantown, WV
Posts: 47
MDAWG25 is on a distinguished road
Re: xBox Controller Feedback, of sorts

I posted a thread on how to accomplish this, check it out here

http://www.chiefdelphi.com/forums/sh...hreadid=128813
__________________
Mountaineer Area RoboticS (MARS) Team 2614



2015-???
2014-Driver
2013-Driver
2012-Driver
2011-Programmer

Last edited by MDAWG25 : 15-04-2014 at 15:19.
  #7   Spotlight this post!  
Unread 15-04-2014, 15:52
JamesTerm's Avatar
JamesTerm JamesTerm is offline
Terminator
AKA: James Killian
FRC #3481 (Bronc Botz)
Team Role: Engineer
 
Join Date: May 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 298
JamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to beholdJamesTerm is a splendid one to behold
Re: xBox Controller Feedback, of sorts

Quote:
Originally Posted by MDAWG25 View Post
I posted a thread on how to accomplish this, check it out here
The original post asks to manipulate the ring of light for the guide button to indicate an override (or overdrive) toggle state.

Thanks for posting this rumble feedback xinput link anyway... I've found it very interesting.
  #8   Spotlight this post!  
Unread 15-04-2014, 16:05
MDAWG25's Avatar
MDAWG25 MDAWG25 is offline
FRC Capability Developer LabVIEW
AKA: Matt
FRC #2614 (MARS)
Team Role: Engineer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Morgantown, WV
Posts: 47
MDAWG25 is on a distinguished road
Re: xBox Controller Feedback, of sorts

Quote:
Originally Posted by JamesTerm View Post
The original post asks to manipulate the ring of light for the guide button to indicate an override (or overdrive) toggle state.

Thanks for posting this rumble feedback xinput link anyway... I've found it very interesting.
My bad, I believe the answer for the LEDs was provider above already. The LEDs are controlled by the driver, and therefore cannot be controlled.

Here is a little more concrete evidence.

http://msdn.microsoft.com/en-us/libr...le_controllers

Quote:
Multiple Controllers
The XInput API supports up to four controllers connected at any time. The XInput functions all require a dwUserIndex parameter that is passed in to identify the controller being set or queried. This ID will be in the range of 0-3 and is set automatically by XInput. The number corresponds to the port that the controller is plugged into, and is not modifiable.
Each controller displays which ID it is using by lighting up a quadrant on the "ring of light" in the center of the controller. A dwUserIndex value of 0 corresponds to the top-left quadrant; the numbering proceeds around the ring in clockwise order.
Applications should support multiple controllers.
__________________
Mountaineer Area RoboticS (MARS) Team 2614



2015-???
2014-Driver
2013-Driver
2012-Driver
2011-Programmer

Last edited by MDAWG25 : 15-04-2014 at 16:19.
Closed Thread


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 02:46.

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