Go to Post "What's this on the floor? 'Team 71 2005 strategy and design notebook'?" DRAT! I better call Bill and get this in the mail. - Gary Dillard [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 22-03-2010, 22:06
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Using x-box 360 controller

Hi. We are using the x-box controller and are controlling the robot drive using arcade drive. Using arcade drive frees up 1 joystick on the x-box controller.
We have tried to access the 'extra' joystick but can't seem to get the 'extra' joystick to output anything to say, a motor controller. We have assigned the 'extra' joystick a refname like 'Joystick 2' and have chosen the same USB (1) as the joystick employed for arcade drive. When that didn't work, we chose USB2 (which also didn't seem to work). We have the x-axis going into a motor set speed vi. We did not unbundle the y-axis because we didn't need it for the application.

I know this is probably simple - can anyone help with this?

Thanks.
  #2   Spotlight this post!  
Unread 22-03-2010, 22:22
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Using x-box 360 controller

You should only use one joystick refname for the entire XBox 360 controller. When you use the unbundle by name for the axes output, drag the lower handle to expand it. You should now have multiple axes labels. The other joystick is in those other axes. When I get to work tomorrow and have my work laptop, I'll try and get you the names of those axes.
__________________
-
An ounce of perception is worth a pound of obscure.
  #3   Spotlight this post!  
Unread 23-03-2010, 00:08
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 210
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Using x-box 360 controller

I'm currently unable to locate the specific rule, so it's possible I'm thinking of past years and not this year, however:

I believe there's a rule that disallows using wireless devices within the alliance station. This means that the Xbox 360 controller is not allowed. The Xbox controller, however, is allowed, because it's wired, not wireless.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
  #4   Spotlight this post!  
Unread 23-03-2010, 06:31
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: Using x-box 360 controller

This controller has a cable coming from it and uses an adapter plug for USB. Could this controller still have 'wireless' functionality too? Oh, and by the way, it says xbox 360 on the back too.
  #5   Spotlight this post!  
Unread 23-03-2010, 06:49
Zach O's Avatar
Zach O Zach O is offline
Building an iOS app @ glacial speed
AKA: @FRCZach
no team
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Atlanta, GA
Posts: 512
Zach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond repute
Re: Using x-box 360 controller

Quote:
Originally Posted by sparks-1784 View Post
This controller has a cable coming from it and uses an adapter plug for USB. Could this controller still have 'wireless' functionality too? Oh, and by the way, it says xbox 360 on the back too.
No, you can't use the wireless on it. If you plan on using it in your driver station, it all has to be wired.
__________________
Follow me twitter dot com slash frc zach
  #6   Spotlight this post!  
Unread 23-03-2010, 07:47
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: Using x-box 360 controller

Quote - "No, you can't use the wireless on it. If you plan on using it in your driver station, it all has to be wired."

That is not what I meant. I am not a 'gamer' so I don't know what functionality this x-box controller has besides the obvious wire coming out of it. If the x-box 360 controller has wireless capability (functionality that is not employed for robotic operation) in addition to the serial hardwired interface it has, can it still be used?
As it is right now, it is only used with the wired interface - if it has wireless capability, I am unaware of that nor would I know how to use the wireless capability.
  #7   Spotlight this post!  
Unread 23-03-2010, 08:04
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: Using x-box 360 controller

Just so there is no spread of 'dis-information' here, there are "wired only" xbox 360 controllers (corded only) that DO NOT HAVE WIRELESS capability. These are 'legal' controllers.
This is what we are using.

Works great.
  #8   Spotlight this post!  
Unread 23-03-2010, 08:34
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 x-box 360 controller

Quote:
Originally Posted by sparks-1784 View Post
Quote - "No, you can't use the wireless on it. If you plan on using it in your driver station, it all has to be wired."

That is not what I meant. I am not a 'gamer' so I don't know what functionality this x-box controller has besides the obvious wire coming out of it. If the x-box 360 controller has wireless capability (functionality that is not employed for robotic operation) in addition to the serial hardwired interface it has, can it still be used?
The answer is still no. During an FRC event, you may not use wireless communication other than the specified DS-to-robot link.

Quote:
As it is right now, it is only used with the wired interface - if it has wireless capability, I am unaware of that nor would I know how to use the wireless capability.
You're not going to get a lot of help here, because you are not permitted to use wireless controllers. Is that clear enough?

(When you're not at a competition, the restrictions do not apply. Use whatever controller you want to.)
  #9   Spotlight this post!  
Unread 23-03-2010, 08:42
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Using x-box 360 controller

There are 2 kinds of XBox 360 Controllers, one with a USB cable attached directly, and one that has a USB cable that can be removed to give it wireless capability (the cable allows the battery to be recharged and to give wired capability). The one that is wired and not capable of being unplugged has no wireless functionality at all and is perfectly legal. The other kind is not.
__________________
  #10   Spotlight this post!  
Unread 23-03-2010, 09:58
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: Using x-box 360 controller

Quote:
Originally Posted by Alan Anderson View Post
The answer is still no. During an FRC event, you may not use wireless communication other than the specified DS-to-robot link.



You're not going to get a lot of help here, because you are not permitted to use wireless controllers. Is that clear enough?

(When you're not at a competition, the restrictions do not apply. Use whatever controller you want to.)
Yes - thanks.
The question was never, "can I use a wireless xbox 360 controller?". The question was whether or not the controller we have has wireless capability because one post implied that all xbox 360 controllers are wireless - which is not true. I wanted to clarify that point (as another poster subsequently stated).
  #11   Spotlight this post!  
Unread 23-03-2010, 10:02
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using x-box 360 controller

Back to the original question of the thread, the XY of joystick 2 is 3 and 4.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #12   Spotlight this post!  
Unread 23-03-2010, 10:16
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Using x-box 360 controller

just for reference for everyone else, here is a button/axis mapping for most of the xbox 360 controller, its missing the D-Pad. Please note that this is only what we came up for one so someone else confirming it would be nice.

button numbers
ButtonA = 1;
ButtonB = 2;
ButtonX = 3;
ButtonY = 4;
LeftBumper = 5;
RightBumper = 6;
Select = 7;
Start = 8;
LeftClick = 9;
RightClick = 10;

joystick axises
LeftXAxis = 1;
LeftYAxis = 2;
TriggerAxis = 3;
/* Both triggers are in this.
* Right Trigger is [-1,0]
* Left Trigger is [0,1]
* Return value = Right Trigger + Left Trigger */
RightXAxis = 4;
RightYAxis = 5;

please excuse the semicolons
as for the trigger mapping, it might be inversed of that, not sure been a while since we made this

Last edited by Zme : 23-03-2010 at 10:20. Reason: revised wording
  #13   Spotlight this post!  
Unread 23-03-2010, 12:41
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: Using x-box 360 controller

thank you for the info. Didn't realize that the 'unbundle' was that easy.
  #14   Spotlight this post!  
Unread 23-03-2010, 20:17
Stealth Stealth is offline
Registered User
FRC #2073
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Elk Grove
Posts: 17
Stealth is an unknown quantity at this point
Re: Using x-box 360 controller

Thanks for the values Zme, they worked flawlessly. You saved us some time with that.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xbox 360 controller viper110110 Programming 7 18-02-2010 19:58
Xbox 360 Controller Rumble bubushkinator C/C++ 5 09-02-2010 15:05
Xbox 360 controller LabView CJBrick General Forum 12 17-12-2008 13:58
xbox 360 controller installation kuelin Technical Discussion 17 07-01-2008 19:43
if we are using an xbox 360 controller, how much can we...... waialua359 Control System 1 24-02-2007 02:43


All times are GMT -5. The time now is 17: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