Go to Post We need to find the female engineering mentors in FIRST and start having them present/co-present technical conferences at the championships. We need to start showing the girls on the teams that there are female engineering "rock stars" to look up to. - Kims Robot [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 28-01-2012, 10:23
Murphys_Outlaws Murphys_Outlaws is offline
Registered User
FRC #0677
 
Join Date: Jan 2012
Location: Columbus, OH
Posts: 3
Murphys_Outlaws is an unknown quantity at this point
Trouble with xbox 360 controller in LabVIEW

Hi,

We are coding an xBox 360 controller in LabVIEW and are having trouble getting the robot code to recognize any input values. We have opened the controller as a joystick and wired in LabVIEW the button and axis outputs to code. Currently, all the lights on our Jaguars are still flashing orange.

Anyone have any solutions to this problem?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2012, 12:20
kdehaan42 kdehaan42 is offline
Registered User
FRC #2874 (Eagles)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Grain Valley
Posts: 15
kdehaan42 is an unknown quantity at this point
Re: Trouble with xbox 360 controller in LabVIEW

We also use xbox controllers to run our robot upload a picture of the code and I will see if I can help.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2012, 12:39
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Trouble with xbox 360 controller in LabVIEW

Theres actually a very simple way to test the values output by a controller. just put all of the values to the motor outputs and run the code from robot main. Dont deply. And then probe the values in the teleop.vi . If its not outputing values then you have 1 of 2 problems

Your controller is in the wrong port or you cant use the controller. Make sure you're using the PC version of the 360 Controller.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2012, 15:18
porterma64's Avatar
porterma64 porterma64 is online now
Registered User
FRC #0815 (Advanced Power)
Team Role: Electrical
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Allen Park
Posts: 14
porterma64 is an unknown quantity at this point
Re: Trouble with xbox 360 controller in LabVIEW

First, check to see if you have drivers installed. Go online for microsoft updates.
Second, look at the Labview examples for joystick controls and look at mapping the inputs to outputs. When you run the vi you will check to see if the motion from the front panel corresponds to the input action on the controller. Record your findings for future programming. You may need to modify the joystick vi to show all switch & joystick inputs on the front panel.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2012, 16:37
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,512
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Trouble with xbox 360 controller in LabVIEW

Go to the diagnostics or setup tab in the driver station and tell us if your gamepad is showing up. If it is not, you may be using a non-standard xbox controller (non-pc standard), and you will have to go get drivers to make it work.

However, that should not affect your jaguars. If they are getting a proper PWM signal, they should be solid orange. Are all the lights on your digital side car lit correctly?
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2012, 00:49
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,112
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: Trouble with xbox 360 controller in LabVIEW

Quote:
Originally Posted by Murphys_Outlaws View Post
Currently, all the lights on our Jaguars are still flashing orange.
Did you enable the robot?
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 08:48.

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