View Single Post
  #2   Spotlight this post!  
Unread 20-01-2015, 22:40
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,756
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 : 20-01-2015 at 22:53.
Reply With Quote