Go to Post Learn the theory in the classroom and pick up the practical through clubs (FIRST, mini Baja, SAE)... you really need the scale balanced in the middle - Greg Needel [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 26-01-2014, 15:23
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Smile 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,
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2014, 15:53
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
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.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2014, 16:45
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: XBOX 360 Controller configuration for Labview

Joe,

What about the Logitech F310? Is it better suited for the FRC environment?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2014, 17:11
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
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.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2014, 01:09
gerry gerry is offline
Registered User
FRC #4144
 
Join Date: Jan 2013
Location: inglewood
Posts: 19
gerry is an unknown quantity at this point
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 !!!!
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2014, 01:36
gerry gerry is offline
Registered User
FRC #4144
 
Join Date: Jan 2013
Location: inglewood
Posts: 19
gerry is an unknown quantity at this point
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
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2014, 03:40
Owen Makin Owen Makin is offline
Registered User
FRC #1972
 
Join Date: Jan 2013
Location: CUHS El Centro
Posts: 50
Owen Makin is an unknown quantity at this point
Re: XBOX 360 Controller configuration for Labview

Quote:
Originally Posted by gerry View Post
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2014, 09:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2014, 17:43
Z1599 Z1599 is offline
Registered User
FRC #1599
 
Join Date: Jan 2014
Location: Virginia
Posts: 2
Z1599 is an unknown quantity at this point
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2014, 18:29
samfruth's Avatar
samfruth samfruth is offline
Registered User
FRC #1710 (Ravonics Revolution)
Team Role: Driver
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Olathe, Kansas
Posts: 132
samfruth will become famous soon enough
Re: XBOX 360 Controller configuration for Labview

Attached is a visual representation courtesy of team 358.
Attached Thumbnails
Click image for larger version

Name:	XBoxControlMapping.jpg
Views:	149
Size:	95.1 KB
ID:	15983  
Reply With Quote
  #11   Spotlight this post!  
Unread 27-01-2014, 18:31
samfruth's Avatar
samfruth samfruth is offline
Registered User
FRC #1710 (Ravonics Revolution)
Team Role: Driver
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Olathe, Kansas
Posts: 132
samfruth will become famous soon enough
Re: XBOX 360 Controller configuration for Labview

Quote:
Originally Posted by gerry View Post
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.
Reply With Quote
  #12   Spotlight this post!  
Unread 28-01-2014, 09:38
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: XBOX 360 Controller configuration for Labview

Quote:
Originally Posted by marccenter View Post
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.
__________________
Per Audacia Ad Astra
Reply With Quote
  #13   Spotlight this post!  
Unread 28-01-2014, 22:17
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Cool 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?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #14   Spotlight this post!  
Unread 29-01-2014, 14:27
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: XBOX 360 Controller configuration for Labview

Quote:
Originally Posted by marccenter View Post
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!
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!
__________________
Per Audacia Ad Astra
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 10:55.

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