Go to Post The future is a dark and mysterious place, and trying to force our current methods on that are patently absurd. - Taylor [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 06-02-2008, 13:57
PrincessJae's Avatar
PrincessJae PrincessJae is offline
Registered User
FRC #2543 (Titan-Bot)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: San Diego
Posts: 53
PrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these parts
Send a message via AIM to PrincessJae
xbox controller

The xbox controller only substitutes one joystick right? so how could we possiblly program the thumbsticks to act as the motions of our sepeate motors on a y axis?
  #2   Spotlight this post!  
Unread 06-02-2008, 14:04
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: xbox controller

The OI can handle up to four axes and four buttons per port. You can configure the Chicklet so that the right thumbstick registers as the wheel and aux axes... the Chicklet manual explains how.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 06-02-2008, 14:09
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: xbox controller

I assume you mean that you want one of the thumbsticks to control each side of your robot.

Short version, the USB Dongle must be set to Mode 1 and have the xbox controller plugged in. The code will look similar to:
Code:
pwm1 = p1_x; //Right Side
pwm2 = p1_y; //Left Side
That is assuming that the dongle is put on port 1 and your drive motors are pwm1 and pwm2.

Take a look at the user guide for the USB Dongle here Page 5 should show you what the code will reference. Look at XBOX/XBOX 360 Mode 1. Or if you need to still use the x axis on the controllers look at Mode 2.

I hope this helps.

Last edited by Andrew Schreiber : 06-02-2008 at 14:11.
  #4   Spotlight this post!  
Unread 06-02-2008, 14:23
PrincessJae's Avatar
PrincessJae PrincessJae is offline
Registered User
FRC #2543 (Titan-Bot)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: San Diego
Posts: 53
PrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these parts
Send a message via AIM to PrincessJae
Re: xbox controller

Thank you that certainly makes sense, we still have problems with our robot reading the analogs, so we switched in the joysticks and they didn't work either. hahah funn =] im sure we'll figure out the problem soon.
  #5   Spotlight this post!  
Unread 06-02-2008, 17:18
Padre_Vez's Avatar
Padre_Vez Padre_Vez is offline
National Inventor Award Winner 2007
AKA: Jonathan
FRC #0103 (Cybersonics)
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Pennsylvania
Posts: 12
Padre_Vez is on a distinguished road
Re: xbox controller

I love you guys xbox controller awesome.
__________________
Beyond the reach of human range
A drop of hell, a touch of strange
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 controller borabora Technical Discussion 8 06-02-2008 21:52
Xbox Controller? ScottieDo555 Technical Discussion 24 29-01-2008 16:24
xbox 360 controller installation kuelin Technical Discussion 17 07-01-2008 19:43
Regular Xbox Controller...HELP! lostandconfused Control System 1 13-02-2007 14:29
chicklet USB/xbox 360 controller spsteam1512 Control System 1 10-01-2007 23:14


All times are GMT -5. The time now is 19:11.

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