Go to Post It'd be nice if, one day, people just concentrated on how to inspire your own team and your own community. Let others decide on how to inspire theirs. - George1902 [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2015, 20:03
loganzip loganzip is offline
Registered User
FRC #2838
 
Join Date: Feb 2014
Location: USA
Posts: 8
loganzip is an unknown quantity at this point
[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?
Reply With Quote
  #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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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