View Single Post
  #6   Spotlight this post!  
Unread 03-02-2017, 22:09
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 445
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Anyone Have Servo Example Code?

Here's an example subsystem from our 2014 robot which used some fingers on the end of servos to keep the ball centered over our catapult: Subsystem;
https://github.com/Team2168/2014_Mai...allTapper.java
Commands: https://github.com/Team2168/2014_Mai...ommands/tapper

And an example from 2016 for controlling hood position:
Subsystem:
https://github.com/Team2168/2016_Mai...ooterHood.java
Command: https://github.com/Team2168/2016_Mai...odToAngle.java

The code is a little rough around he edges, but it's fairly well commented and it's all been used in match, so should work unless the Servo class has been changed.
__________________
http://team2168.org

Last edited by otherguy : 03-02-2017 at 22:15.
Reply With Quote