View Single Post
  #3   Spotlight this post!  
Unread 03-02-2014, 16:35
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,795
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: Button to control motor?

It sounds like you just want to use a Select (on the Programming->Comparisons palette).
Here's an example using a couple of Selects to set motor speeds.
This particular example maintains the last speed chosen by button until overridden by a new button press and it's compatible with the Motor Safety Config if you want to use that:


Using Case statements looks like this (replace the Solenoid Sets with Motor Sets).
This method isn't compatible with the Motor Safety Config:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2014 at 16:45.
Reply With Quote