May 2012
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Team Blast - 05-08-12
Tue May 08, 2012 4:09 pm by Admin

» Leadership Training Program for FIRST Mentors/Coaches and e-mail blast correction
Thu May 03, 2012 3:22 pm by Admin

» FTC Teams Email Blast - 04-17-12
Wed Apr 18, 2012 10:18 am by Admin

» FTC Team Blast - March 28, 2012
Thu Mar 29, 2012 3:33 pm by Admin

» FTC Florida News - March 17, 2012
Mon Mar 19, 2012 4:43 pm by Admin

» FTC Team Blast - FEb. 28, 2012
Wed Feb 29, 2012 10:37 am by Admin

» FTC Florida Championship - Email #2
Wed Feb 15, 2012 9:13 pm by Admin

» Team Blast 02-14-12 - Valentine's Day edition
Tue Feb 14, 2012 6:08 pm by Admin

» FTC Florida Championship - Email #1
Mon Feb 13, 2012 5:20 pm by Admin

Rss feeds

Yahoo! 
Google Reader 
MSN 
AOL 
NewsGator 
Netvibes 
Bloglines 


FL FTC Twitter
FTC Twitter

My Goal is Everyone moves in Autonomous

View previous topic View next topic Go down

My Goal is Everyone moves in Autonomous

Post by swamp144 on Thu Nov 19, 2009 9:22 pm

My goal is to have every robot that runs ROBOTC at Port Orange Florida move in Autonomous and mayby have a dance contest.
The solution in ROBOTC is found under the File==> Open Sample Program ==> FIRST Tech Challange==> MotorMovement.c
1) Open a blank Competition Autonomous Template from www.ftctraining.com ==> RobotC
2) Setup you motors and sensors under Robot ==> Motor and Sensor Setup. I use the standard MotorD and MotorE names instead of the rightMotor and leftMotor as shown in the MotorMovement.c sample program
3) after the line #include "common.h" in the Autonomous Template paste all of the void subroutines from MotorMovement
4) Copy and paste the goForward Void and modify it to use for your shooter motors (our robot uses MotorF and MotorG) and call the void shoot
5) Modify or copy the turnRight and turnLeft to create a spinRight and spinLeft where the motor values are +75 and -75
(our team's robot doesn't turn very well with one motor set to 0. I also have a rightBackwards and leftBackwards Void in case
I want the robot to do the Hooky Pokey and spin myself around later)
6) Paste all of the lines under task main and reorder and // comment the ones that you are not using for later. The time values are in thousands of a second. Our robot moves one tile length in approximately 1 second. The statement goForward(1000); runs both motors at +75 percent power for 1 second.
7) Save, Recompile, and Compile and Download the program

Have Fun
swamp144


Last edited by swamp144 on Thu Nov 19, 2009 9:24 pm; edited 1 time in total (Reason for editing : forgot to scroll to bottom before pasting)

swamp144

Join date: 2009-11-17

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum