View Single Post
  #10   Spotlight this post!  
Unread 14-10-2010, 03:11
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,748
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Off season Questions **Need Help Asap/Code Check**

Another way to do this would be to do an Exclusive OR of the Button6 and Button7 values and feed the result into a case.

False would set the motor speed to zero.

True would feed the value of Button7 into and If, the true leg = +1, false leg = -1. Output of IF would be multiplied by .5 and fed to motor speed.

The Labview XOR looks like this:

XOR returns FALSE if both values are either TRUE or both values are FALSE, otherwise it returns TRUE.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote