Go to Post "If all else fails, use a bigger hammer" - Steve Florence - Logan Byers [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 01-20-2015, 08:53 PM
ahudson ahudson is offline
Registered User
FRC #3179
 
Join Date: Jan 2010
Location: aDAIR
Posts: 46
ahudson is infamous around these parts
Angry XBox 360 triggers

New programmer with new LabView. We need to program a gearbox to go one direction by pushing a trigger button and reverse the direction with the other trigger button. We have not gotten anywhere with our attempts. Any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-20-2015, 10:40 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,700
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: XBox 360 triggers

Here's a generic example of driving a motor by button.



The xBox right/left triggers though are actually treated as axis 2 & 3, so you'd need a variation.
The Left and right triggers produce a floating point number from 0.0-1.0
So give yourself a little wiggle space and replace the button feeds in the example with the checks:
Axis 2 > .1 (or .5)
Axis 3 > .1

So something like this:

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-20-2015 at 10:53 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-23-2015, 09:31 PM
ahudson ahudson is offline
Registered User
FRC #3179
 
Join Date: Jan 2010
Location: aDAIR
Posts: 46
ahudson is infamous around these parts
Re: XBox 360 triggers

Thank you, Mark! We are now running all three motors!
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 02:25 PM.

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