Go to Post The unlived life is not worth examining; the unexamined life is not worth living. - Sage-Theory6 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 11-01-2017, 22:08
messer5740's Avatar
messer5740 messer5740 is offline
Registered User
FRC #5740 (Trojanators)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Pittsburgh
Posts: 130
messer5740 is an unknown quantity at this point
Programing linear strafing Xbox controller

Hey CD

Our team has a linear strafing drive this year, but we are having difficulty programing our Xbox controller's joysticks axis. So the left joystick works, both x and y, but our right joystick gives no feedback to the drivers station. Anyone else have a solution to this issue? Does the drivers station not show the right axis but it still works?
__________________
A good driver is always better than a good robot.

2015: Winner of the Rookie Inspiration Award
2016: 8th seed alliance captain at Greater Pittsburgh Regional and 6th seed alliance captain at the Buckeye Regional
Thanks to all our alliance members!
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2017, 23:10
PopeRyanI PopeRyanI is offline
Registered User
FRC #2410 (Metal Mustangs Robotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2012
Location: Kansas
Posts: 22
PopeRyanI is an unknown quantity at this point
Re: Programing linear strafing Xbox controller

Make sure you reading out the correct axes of the controller. For an X-box controller Right x-axis should be axis 4 and right Y-axis should be axis 5. Hope this helps!
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2017, 08:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programing linear strafing Xbox controller

Depends on which dashboard you are using, but I assume you are referring to the default Dashboard display of the joystick position.
The default LabVIEW dashboard is setup to display axis 0 & 1 from two different joysticks plugged into USB0 and USB1.

To show the two sticks on an xBox create a new LabVIEW Dashboard and change the joystick mapping to the Dashboard display.
It's pretty simple to do.
Attached Thumbnails
Click image for larger version

Name:	OriginalDashboard.jpg
Views:	39
Size:	18.1 KB
ID:	21523  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-01-2017 at 08:53.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2017, 17:40
messer5740's Avatar
messer5740 messer5740 is offline
Registered User
FRC #5740 (Trojanators)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Pittsburgh
Posts: 130
messer5740 is an unknown quantity at this point
Re: Programing linear strafing Xbox controller

Quote:
Originally Posted by Mark McLeod View Post
Depends on which dashboard you are using, but I assume you are referring to the default Dashboard display of the joystick position.
The default LabVIEW dashboard is setup to display axis 0 & 1 from two different joysticks plugged into USB0 and USB1.

To show the two sticks on an xBox create a new LabVIEW Dashboard and change the joystick mapping to the Dashboard display.
It's pretty simple to do.
I think we are running a new version of labview... got any newer code?
__________________
A good driver is always better than a good robot.

2015: Winner of the Rookie Inspiration Award
2016: 8th seed alliance captain at Greater Pittsburgh Regional and 6th seed alliance captain at the Buckeye Regional
Thanks to all our alliance members!
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2017, 17:59
kingca kingca is offline
Registered User
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Florida
Posts: 21
kingca is an unknown quantity at this point
Re: Programing linear strafing Xbox controller

Are you making sure that they are in the right port on the DriverStation for example like the 0 and 1 port.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2017, 18:05
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Programing linear strafing Xbox controller

Quote:
Originally Posted by messer5740 View Post
Our team has a linear strafing drive this year
I searched Chief Delphi for the phrase "linear strafing drive", and that phrase doesn't seem to be widely used.

Would you please clarify what you mean?


Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2017, 19:45
messer5740's Avatar
messer5740 messer5740 is offline
Registered User
FRC #5740 (Trojanators)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Pittsburgh
Posts: 130
messer5740 is an unknown quantity at this point
Re: Programing linear strafing Xbox controller

Quote:
Originally Posted by Ether View Post
I searched Chief Delphi for the phrase "linear strafing drive", and that phrase doesn't seem to be widely used.

Would you please clarify what you mean?


Using an H-Drive... like mecanum but with all Omni and an additional center Omni wheel. We still can't figure out how to use the different axis's (axisis?) to straife (arcade drive)
__________________
A good driver is always better than a good robot.

2015: Winner of the Rookie Inspiration Award
2016: 8th seed alliance captain at Greater Pittsburgh Regional and 6th seed alliance captain at the Buckeye Regional
Thanks to all our alliance members!
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2017, 19:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Programing linear strafing Xbox controller

Quote:
Originally Posted by messer5740 View Post
Using an H-Drive...
That's a widely understood name for it.

Quote:
We still can't figure out how to use the different axis's (axisis?)
axes

Quote:
to straife (arcade drive)
Describe your driver interface and you might get some help.


Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2017, 20:38
thatnameistaken thatnameistaken is offline
Registered User
AKA: Joshua Johnston
FRC #2191 (Flux Core)
Team Role: College Student
 
Join Date: Oct 2012
Rookie Year: 2013
Location: Hamilton, NJ
Posts: 62
thatnameistaken is on a distinguished road
Re: Programing linear strafing Xbox controller

Pro tip: the USB tab of the driver station shows all axes and buttons on your controllers, regardless of how your dashboard is programmed.
Click image for larger version

Name:	2017-01-14.png
Views:	13
Size:	16.6 KB
ID:	21538
Click on the controller you're using and move the sticks around to verify which axis is which and that they're all working.

Last edited by thatnameistaken : 14-01-2017 at 20:40.
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


All times are GMT -5. The time now is 18:27.

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