Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Programing linear strafing Xbox controller (http://www.chiefdelphi.com/forums/showthread.php?t=153501)

messer5740 11-01-2017 22:08

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?

PopeRyanI 11-01-2017 23:10

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!

Mark McLeod 12-01-2017 08:45

Re: Programing linear strafing Xbox controller
 
1 Attachment(s)
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.

messer5740 13-01-2017 17:40

Re: Programing linear strafing Xbox controller
 
Quote:

Originally Posted by Mark McLeod (Post 1629812)
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?

kingca 13-01-2017 17:59

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.

Ether 13-01-2017 18:05

Re: Programing linear strafing Xbox controller
 
Quote:

Originally Posted by messer5740 (Post 1629695)
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?



messer5740 14-01-2017 19:45

Re: Programing linear strafing Xbox controller
 
Quote:

Originally Posted by Ether (Post 1630795)
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)

Ether 14-01-2017 19:58

Re: Programing linear strafing Xbox controller
 
Quote:

Originally Posted by messer5740 (Post 1631289)
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.



thatnameistaken 14-01-2017 20:38

Re: Programing linear strafing Xbox controller
 
1 Attachment(s)
Pro tip: the USB tab of the driver station shows all axes and buttons on your controllers, regardless of how your dashboard is programmed.
Attachment 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.


All times are GMT -5. The time now is 02:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi