Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   XBOX 360 Controller configuration for Labview (http://www.chiefdelphi.com/forums/showthread.php?t=125291)

marccenter 26-01-2014 15:23

XBOX 360 Controller configuration for Labview
 
Dear CD,

I have only used the joysticks in the past so I have a few questions about use of the XBOX 360 controller (for the student operator)

1) Does anyone have the Labview configuration mapping of the XBOX 360 controller?

2) Can you copy and paste your TeleOP.vi portion that you created for the XBOX 360 showing analog and button configurations?

3) Some threads show use of Logitech F210? controller? Have you found thos one to be better for the FIRST game environment?

Thanks in advance for your help,

Iaquinto.Joe 26-01-2014 15:53

Re: XBOX 360 Controller configuration for Labview
 
Quote:

Axis 1: Left Thumbstick Left-Right
Axis 4: Right Thumbstick Left-Right
Axis 2: Left Thumb Stick Up-Down(Needs to be negated or else up-down controls are inverted)
Axis 5: Right Thumb Stick Up-Down(Needs to be negated or else up-down controls are inverted)
Axis 3(>0): Left Trigger
Axis 3(<0): Right Trigger

1: A Button
2: B Button
3: X Button
4: Y Button
5: Left Bumper
6: Right Bumper
7: Stop/Back Button
8: Start Button
9: Left Thumbstick Button
10: Right Thumbstick Button

DPAD:
-1: No Thumbpad Button
0: North Thumbpad Button
45: North-East Thumbpad Button
90: East Thumbpad Button
135: South-East Thumbpad Button
180: South Thumbpad Button
225: South-West Thumbpad Button
270: West Thumbpad Button
315: North-West Thumbpad Button
The D-Pad is rather messed up; I wouldn't recommend using it.
Use Unbundle By Name vis on the two outputs from Joystick Get.

marccenter 26-01-2014 16:45

Re: XBOX 360 Controller configuration for Labview
 
Joe,

What about the Logitech F310? Is it better suited for the FRC environment?

Iaquinto.Joe 26-01-2014 17:11

Re: XBOX 360 Controller configuration for Labview
 
We've never used that one, but I have heard it is higher quality (In terms of sensor accuracy and deadzone). I will always prefer a logitech attack 3d due to increased precision, accuracy, and quality over a handheld joypad.

gerry 27-01-2014 01:09

Re: XBOX 360 Controller configuration for Labview
 
so its my third year programming and ive never done xbox 360 controllers the most complicated thing that ive ever done was a six cim drive train so i wanted to know if someone could tutorial me on programing a xbox 360 controller using the left thumbstick for movement forwards and backwards and the right thumstick for movement right and left and the right trigger for acceleration forward and the left trigger for backward acceleration
i know itll be difficult but i wanted a challenge and now im second guessing myself
and need tons of help !!!!

gerry 27-01-2014 01:36

Re: XBOX 360 Controller configuration for Labview
 
lol so far im still at zero ive been on this for 4 hours lol so i realized that the accel thing is not gunna work so i dummed it down to using the left thumb stick for forwards movement and backwards movement, using the right thumbstick for left and right movement

Owen Makin 27-01-2014 03:40

Re: XBOX 360 Controller configuration for Labview
 
Quote:

Originally Posted by gerry (Post 1333012)
lol so far im still at zero ive been on this for 4 hours lol so i realized that the accel thing is not gunna work so i dummed it down to using the left thumb stick for forwards movement and backwards movement, using the right thumbstick for left and right movement

Im not sure the triggers work with labview, but a controller is as easy to program as a joystick, the only difference in the programming is the amount of axis' you can use when you use the unbundle by name, other than that, its exactly the same. If you have any problems with your code, you can post it so we can help you.

Alan Anderson 27-01-2014 09:04

Re: XBOX 360 Controller configuration for Labview
 
The default arcade drive robot project will do what you want with two small changes to the Unbundle By Name connected to the axes of the Joystick Get function in Teleop. Use whatever axis is the left stick's front/back as the Y input, and use whatever axis is the right stick's left/right as the X input.

Z1599 27-01-2014 17:43

Re: XBOX 360 Controller configuration for Labview
 
I recently learned how to program for the Xbox controller. Many people seem to mistake many of the controls from what I have seen.

Axis 1: Left X axis
Axis 2:Left Y axis
Axis 3: Triggers (Left trigger is a negative output, right trigger is a positive)
Axis 4:Right X axis
Axis 5:Right Y axis
Axis 6: D-pad (Not recommended for use)

Button 1:A
Button 2:B
Button 3:X
Button 4:Y
Button 5:Left Bumper
Button 6:Right Bumper
Button 7:Stop/Back
Button 8:Start
Button 9:Left Thumbstick
Button 10:Right Thumbstick

The rest of the setup just unbundles the same way a logitech controller does. I hope this helps.

samfruth 27-01-2014 18:29

Re: XBOX 360 Controller configuration for Labview
 
1 Attachment(s)
Attached is a visual representation courtesy of team 358.

samfruth 27-01-2014 18:31

Re: XBOX 360 Controller configuration for Labview
 
Quote:

Originally Posted by gerry (Post 1333001)
so its my third year programming and ive never done xbox 360 controllers the most complicated thing that ive ever done was a six cim drive train so i wanted to know if someone could tutorial me on programing a xbox 360 controller using the left thumbstick for movement forwards and backwards and the right thumstick for movement right and left and the right trigger for acceleration forward and the left trigger for backward acceleration
i know itll be difficult but i wanted a challenge and now im second guessing myself
and need tons of help !!!!

All you need to do is go into your code and change the axis of your joysticks in teleop...if you are using LabView that is.

Invictus3593 28-01-2014 09:38

Re: XBOX 360 Controller configuration for Labview
 
Quote:

Originally Posted by marccenter (Post 1332799)
What about the Logitech F310? Is it better suited for the FRC environment?

What do you mean by "better suited?" I've always found our team's xbox controllers to be more than advantageous during a heated match.

marccenter 28-01-2014 22:17

Re: XBOX 360 Controller configuration for Labview
 
Quote:

What do you mean by "better suited?" I've always found our team's xbox controllers to be more than advantageous during a heated match.
I wasn't specific because I didn't want to tailor the potential answers based on my questions. However, a list of things come to my mind when comparing the use of the XBOX 360 gamepad controller vs the Logitech 310 model. Please remember I haven't used either for gaming (sorry, showing my age).

1) Linearity to response on the joystick
2) Dead band of the joystick
3) General reliability of either model in the FRC environment (issues with the driver station,funny issues while programming, or failing after dropping).
4) From the pictures the Logitech model has the two joysticks close together versus the XBOX controller. In my simple mind this would seem to be a major advantage. Have your student drivers/operators found this to be the case?
5) One CD user commented that the D switches seemed unreliable and they only used the buttons. Was this your experience as well?

Invictus3593 29-01-2014 14:27

Re: XBOX 360 Controller configuration for Labview
 
Quote:

Originally Posted by marccenter (Post 1333961)
I wasn't specific because I didn't want to tailor the potential answers based on my questions. However, a list of things come to my mind when comparing the use of the XBOX 360 gamepad controller vs the Logitech 310 model. Please remember I haven't used either for gaming (sorry, showing my age).

1) Linearity to response on the joystick
2) Dead band of the joystick
3) General reliability of either model in the FRC environment (issues with the driver station,funny issues while programming, or failing after dropping).
4) From the pictures the Logitech model has the two joysticks close together versus the XBOX controller. In my simple mind this would seem to be a major advantage. Have your student drivers/operators found this to be the case?
5) One CD user commented that the D switches seemed unreliable and they only used the buttons. Was this your experience as well?

Being the driver and a gamer, I do have a bit of bias toward my beloved xbox controller. But going through your list:

1) Linearity can be fixed by using a couple equations as we and others have done
2) the deadband is a problem, as the axes never seem to quite hit zero, but this can be fixed with a bit of coding
3) With our environment, it's a miracle that any controller would survive longer than a year, but we still have the same USB xbox controllers from 2011! :D
4)The position on the joysticks bring up one of the biggest playstation vs xbox arguements. Obviously the Logitech 310 is based on a Playstation model, so i think it comes down to a matter of preference. Me as a driver and having played xbox for years, an offset joystick configuration feels right to me and the other drivers, we don't have any problems using Tank Drive with it.
5) The D-Pad is very odd in that it isn't just straight-forward buttons. We have never used it and we really don't plan to, but if we need 8 more buttons, I guess we'll have to use it. We've actually never used every button on the controller (1-10) to date, obviously automation is key to controlling a robot

I think it really comes down to preference. I prefer the xbox controller but I can see any team being effective with the 310!


All times are GMT -5. The time now is 06:20.

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