View Single Post
  #2   Spotlight this post!  
Unread 27-01-2015, 15:31
ForgotSemicolon's Avatar
ForgotSemicolon ForgotSemicolon is offline
I always forget those semicolons.
FTC #5998 (Ultraviolet)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Texas
Posts: 12
ForgotSemicolon is an unknown quantity at this point
Re: [FTC]: RobotC Servo Autonomous

Hey there! For servos in RobotC, the first step is to declare the servos.
To do that, simply adjust the "Motors and sensors setup", which is accessed by double clicking your motor initialization code. (Pramga config).

Then, simply assign a value from 0 to 251 (i think, i'm not exactly sure of the max) like so:

servo[servo1] = 125;

Hope this helps!
Reply With Quote