Go to Post PS: Sorry for derailing this thread even further. - Molten [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 20-03-2016, 21:14
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 109
Coach Seb is an unknown quantity at this point
Help with Joystick command

We are having an issue where a joystick command (Left and right trigger on XBox controller) are not working properly.

In the driver station, i can push the button and the signal is being read (i can see the signal on the screen) but when we probe the code, no signal is read... i cannot figure this thing out.... We switch to a different controller and we have the same issue so we are pretty sure its in the code....
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2016, 21:52
whitetail's Avatar
whitetail whitetail is offline
Registered User
FRC #5407 (Wolf Pack)
Team Role: Driver
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Philadelphia
Posts: 54
whitetail is an unknown quantity at this point
Re: Help with Joystick command

What programing language are you using?
__________________
FRC Team 5407 -Driver, Programmer and Head Control Systems Engineer
2015 MAR Championship Rookie All Star Award
2015 MAR Hatboro-Horsham District Rookie All Star Award
2015 MAR Hatboro-Horsham District event Winner(Thanks 2590 and 2607)
2016 MAR Hatboro-Horsham District event Winner(Thanks 2607 and 1218)
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2016, 21:55
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: Help with Joystick command

Can you post a snapshot of your code and a description of what you expect it to be doing?
__________________
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
  #4   Spotlight this post!  
Unread 20-03-2016, 22:11
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 30
Matt-T-FRC is an unknown quantity at this point
Re: Help with Joystick command

Coach Seb,
I had a chance to do a little work to your program since we last talked. I am posting a vi sniplet of your teleop code with the automated arm and winch removed. Use this as an example and go from there for further trouble shooting.

Last edited by Matt-T-FRC : 20-03-2016 at 22:59.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-03-2016, 22:39
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: Help with Joystick command

Quote:
Originally Posted by Matt-T-FRC View Post
Coach Seb,
I had a chance to do a little work to your program since we last talked. I am posting a vi sniplet of your teleop code with the automated arm and winch removed. Use this as an example and go from there for further trouble shooting.
Your wires appear to be... missing...

Any reason why y'all are using the "Array to Cluster" and "Unbundle by Name" instead of using "index array" directly?
__________________
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
  #6   Spotlight this post!  
Unread 20-03-2016, 22:58
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 30
Matt-T-FRC is an unknown quantity at this point
Re: Help with Joystick command

Wow, it shows up in Teleop, I posted an updated version. Also I use array to clusters and then unbundle by name because that is what I am use to using and haven't completely adapted to using array to clusters yet. It also makes it a little easier to read.
Attached Thumbnails
Click image for larger version

Name:	5860 Teleop Ideas UPDATED.png
Views:	20
Size:	91.4 KB
ID:	20403  
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:26.

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