View Single Post
  #5   Spotlight this post!  
Unread 12-02-2012, 21:50
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: How to program the Xbox 360 Wired Controller...

On the subject of the toggle, that is a little more complex. First, you'll need a rising edge trigger, so that the toggle doesn't get called multiple times in rapid succession. Then you'll need to send that value into the future, a shift register or something. Last, run both into an exclusive or. This is how you would do it (see attached).
Attached Files
File Type: vi Boolean Latch.vi (19.6 KB, 60 views)
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote