Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   XBox 360 triggers (http://www.chiefdelphi.com/forums/showthread.php?t=133254)

ahudson 20-01-2015 20:53

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?

Mark McLeod 20-01-2015 22:40

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:


ahudson 23-01-2015 21:31

Re: XBox 360 triggers
 
Thank you, Mark! We are now running all three motors!


All times are GMT -5. The time now is 18:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi