Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: RobotC Servo Autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=133249)

loganzip 20-01-2015 20:03

[FTC]: RobotC Servo Autonomous
 
I am part of FTC Team 7828 the Robo Ducks. I have been not able to figure out how to program servos during autonomous. Anyone know how to do that? If, so how would you program that for RobotC?

ForgotSemicolon 27-01-2015 15:31

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!


All times are GMT -5. The time now is 17:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi