View Single Post
  #16   Spotlight this post!  
Unread 02-02-2010, 01:08
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,522
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Is there a Way To refrence a true false statement

The easiest way to invert your motors response is simply to invert the value you are sending from the joystick.

In this case, inside the teleop VI get a button from the joystick and wire it to a true/false structure. In the false case, wire your normal joystick output through to your motor. In the true case, place a "negate" inside it, and wire your joystick through that.

Now all your joystick values that come out when the button is pressed and held will be inverted, and your motor will run "backwards" in response to them.
Reply With Quote