View Single Post
  #4   Spotlight this post!  
Unread 07-02-2013, 19:56
Martian86 Martian86 is offline
Registered User
FRC #1159
Team Role: Alumni
 
Join Date: Sep 2012
Rookie Year: 2011
Location: California
Posts: 28
Martian86 is just really niceMartian86 is just really niceMartian86 is just really niceMartian86 is just really niceMartian86 is just really nice
Re: Problem programming buttons

Quote:
Originally Posted by Alan Anderson View Post
Instead of having the Case do everything, just have it produce the values you want to run the motor with, and put a single RefNum Get and Motor Set Value outside the Case Structures. Chain the Case Structures together so that the False case just feeds its inputs straight through to its outputs without change, and the True case ignores the inputs and wires the desired constants to its outputs. Feed zeros into the first Case Structure so that the motors will be off when no buttons are pressed.
Did that, it works now. Thanks!
Reply With Quote