View Single Post
  #2   Spotlight this post!  
Unread 12-02-2011, 14:09
legogeek24's Avatar
legogeek24 legogeek24 is offline
Registered User
AKA: Dirk
FRC #3562 (LiveWire)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Pocatello, ID
Posts: 94
legogeek24 has a spectacular aura aboutlegogeek24 has a spectacular aura aboutlegogeek24 has a spectacular aura about
Re: Help with sevo programming

I'm not entirely sure what you're asking, but when I programmed our servo code, when a button was pressed, the servo would move and stay in that position until it was told to move elsewhere. I used a case statement for each servo. I threaded the bool value from the get -> Button 3 (or whatever button you choose) to the case statement. If the button is pressed, move the servo a few degrees. If not, do nothing. It's simple code, but is working fine for us. I hope that helps
Reply With Quote