Go to Post FIRST describes this program as students working "side by side" with professional mentors. We describe our team as working "shoulder to shoulder." Maximum learning happens with maximum interaction between students and mentors, whenever and wherever that may be. - jspatz1 [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, 17:36
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: XBOX Controller Triggers is an axis but which one?

Quote:
Originally Posted by Bmcdonnell View Post
Go to control panel --> game controllers --> properties. It shows up what button and axis is what when you press it. We have everything except the rumble. There's some threads, I believe in WindRiver, for using rumble, but does any one know how to do it in Labview? I would love to be able to have it rumble when our robot senses a ball.+
I remember seeing those threads, and you have two options (assuming I remember correctly): write your own xbox driver for windows, OR, open the xbox controller, find the rumble wire, and wire it to a digital out on the cypress board.
the default code and the DS software prevent writes to the joystick, so you would have to circumvent it using one of the methods above
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #2   Spotlight this post!  
Unread 22-03-2010, 19:36
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
Trapped under a pile of MECANUMS :P
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,574
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: XBOX Controller Triggers is an axis but which one?

Thanks for all your help I hope to try this out at Palmetto.

Just another quick Question. when I wired axis 3 into a True False Selector the true and False changed to 1 and 0 which i put my true code in 1, and my false code in 0. see attached pictures tell me if im doing this right. If the button is true then set the motor speed to the percentage of the button press, for variable control. If the button i...s false, then I made another true/false case for the sensor. In the false case, I set the motor speed to 0.1. In the true case, I set the motor speed to 0.

This way, when the button is NOT being hit, it looks for the sensor, and it spins it around REALLY SLOWLY until the sensor is tripped, and then it stops there.



and another
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
  #3   Spotlight this post!  
Unread 22-03-2010, 20:48
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: XBOX Controller Triggers is an axis but which one?

Quote:
Originally Posted by John_1102 View Post
Thanks for all your help I hope to try this out at Palmetto.

Just another quick Question. when I wired axis 3 into a True False Selector the true and False changed to 1 and 0 which i put my true code in 1, and my false code in 0. see attached pictures tell me if im doing this right. If the button is true then set the motor speed to the percentage of the button press, for variable control. If the button i...s false, then I made another true/false case for the sensor. In the false case, I set the motor speed to 0.1. In the true case, I set the motor speed to 0.
I would recommend that you delete the wire from axis 3 and change your case structure back to TRUE and FALSE. Test axis three against "> 0.5" and if it's greater than 0.5, it will tigger the TRUE case, and if it's less than 0.5 it will trigger FALSE.

The problem with using the 0 and 1 cases is that it is possible that you cannot get to the 1 case if your XBox controller is out of calibration. If you use the 0.5 compare, you will be covered.
__________________
-
An ounce of perception is worth a pound of obscure.
  #4   Spotlight this post!  
Unread 30-06-2010, 13:46
MCeGEAR MCeGEAR is offline
Registered User
FRC #1243
 
Join Date: Jan 2010
Location: US
Posts: 12
MCeGEAR is an unknown quantity at this point
Re: XBOX Controller Triggers is an axis but which one?

Quote:
Originally Posted by byteit101 View Post
I remember seeing those threads, and you have two options (assuming I remember correctly): write your own xbox driver for windows, OR, open the xbox controller, find the rumble wire, and wire it to a digital out on the cypress board.
the default code and the DS software prevent writes to the joystick, so you would have to circumvent it using one of the methods above
There are Drivers, non-Microsoft, that support the rumble packs, you just have to risk the viruses and spend some time looking.
  #5   Spotlight this post!  
Unread 30-06-2010, 13:58
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: XBOX Controller Triggers is an axis but which one?

for a controller mapping of the xbox 360 controllers please see this post
http://www.chiefdelphi.com/forums/sh...3&postcount=12
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 Team1710 FRC Control System 9 30-06-2010 13:17
Which axis for accelerometer? bitsoglass NI LabVIEW 1 23-01-2009 17:42
Xbox Controller? ScottieDo555 Technical Discussion 24 29-01-2008 16:24
Which is better? (Xbox 360 or PS3) 842.001 Games/Trivia 29 11-11-2006 16:06
Do the Dew... but which one? OneAngryDaisy Chit-Chat 13 16-06-2003 16:17


All times are GMT -5. The time now is 03:39.

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