View Single Post
  #2   Spotlight this post!  
Unread 06-01-2013, 21:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Moving Servo Motors

There are a number of good ways of doing this, but perhaps what you want is to identify an initial servo setting, say 90 degrees. Pressing a button adds a delta, say 10 degrees to the number and updates the servo. Perhaps another button will subtract 10. Alternatively, you could use buttons to simply set the number to a special number.

The code for this would look similar to the attached image. Note that I duplicated the case diagrams near it as printing would. They are actually stacked in the code as individual diagrams.

greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	86
Size:	172.0 KB
ID:	13407  
Reply With Quote