Go to Post GP is best shown and lived and not talked about. - Steve W [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 30-01-2015, 10:21
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
Question New F310 Gamepad VI Dashboard issues

Dear CD,

I have created a new, F310 Gamepad VI based on the existing Prepare Joystick Data for Displays.VI
to display the gamepad axis and buttons on the dashboard.

I have looked at the examples and read through some CD postings but cannot get it to work properly.
I have wired Y=axis 1 and Y=axis 5 to what I think should be the right inputs for the dashboard display.

Any help in determining what needs to be changed to make it work would be appreciated. I've beaten
this horse for more than it's fair share of time and effort. I'm missing something very basic here.

I have attached a PDF with Labview implementation pictures.

Regards.
Attached Files
File Type: pdf F310 Gamepad Dashboard VI 30Jan15.pdf (286.8 KB, 12 views)
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 30-01-2015 at 10:27. Reason: more info
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2015, 10:31
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: New F310 Gamepad VI Dashboard issues

It looks like you are missing a wire to "Cartesian Data" in Prepare F310 Gamepad Data for Displays.vi

Also Z Axis in the same VI is wired to array index 6 (unwired will be previous index of 5 + 1)
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2015, 10: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: New F310 Gamepad VI Dashboard issues

wt200999,

1) Good catch. That's very interesting that I did not break that link (I copied and pasted the original VI as a basis) but it must become broken when being rewired. Huh.

2) I'll move the z-axis in my next update when I get home tonight for more testing on my test bench. I'm still a little confused because I would expect the connection to go to Axis 2 on the gamepad in the existing setup but it goes to Axis 1.
__________________
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 30-01-2015, 11:38
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: New F310 Gamepad VI Dashboard issues

Quote:
Originally Posted by marccenter View Post
2) I'll move the z-axis in my next update when I get home tonight for more testing on my test bench. I'm still a little confused because I would expect the connection to go to Axis 2 on the gamepad in the existing setup but it goes to Axis 1.
As a sanity check for which axis should correspond to which array index, you can view the output on the USB tab on the driver station, just remember that they are 1 indexed there, and LabVIEW is 0 indexed. Also if you probe the axis array you will see what data is actually being passed through and you can compare to what the driver station sees.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
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 20:09.

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