Go to Post Deadlines are part of everyday life. - Steve W [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 Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-01-2011, 10:36
Austin3324 Austin3324 is offline
Lead Programmer Team 3324
FRC #3324 (Metrobots)
Team Role: Programmer
 
Join Date: Apr 2010
Rookie Year: 2008
Location: Columbus, Ohio
Posts: 10
Austin3324 is an unknown quantity at this point
Re: XBox 360 Controller Programming in LabView

Ok, well, in my attempts to interface my program with the FRC Project, I discovered one very important thing: This code only works on the host computer, not the cRIO.

I have started to muck around with trying to get LabView to read the controller using the WPI Joystick VIs and got some functionality. I was able to get it to read both thumbsticks in both the X and Y Axis, the triggers, and the X Axis on the thumbpad. The only downside is that, at least in my opinion, since all of those were from the six axes already built into the code, I opted to go in and modify the underlying WPI code to allow for a seventh axis (and, if it works, it will soon become more). I have no idea whether or not this will do anything nor whether I could do some serious damage to the program by modifying the VIs at such a base level.

It claims to be fully compatible and able to compiled, but I haven't been able to actually upload it and test my extra axis. I also don't even know if what I'm doing could help since I don't actually know if the controller communicates over more than six axes.

If anyone could help with these modifications, I would be most grateful, and if you just want to know how to actually get LabView to read the XBox 360 controller, then I am glad that I could help you.

Austin

Included as attachments are the version of the Teleop VI that I am using to test the controller, the WPI_JoystickGet VI that I have modified to get a seventh axis, and the WPI_JoystickCache VI that actually is where I created my seventh axis in.
Attached Files
File Type: vi Teleop.vi (16.9 KB, 524 views)
File Type: vi WPI_JoystickCache.vi (12.0 KB, 188 views)
File Type: vi WPI_JoystickGet.vi (16.6 KB, 222 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2011, 19:36
Simmers1912 Simmers1912 is offline
Registered User
FRC #1912
 
Join Date: Jan 2011
Location: Slidell
Posts: 1
Simmers1912 is an unknown quantity at this point
Re: XBox 360 Controller Programming in LabView

Hey, our team is also trying to controll our robot with an Xbox controller and we have been following your thread. We however wanted to know if you had found a way to incorporate the rumble pack in the Xbox 360 controller into the labview code. Thank you for your time.
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:10.

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