Search
Latest topics
FL FTC Twitter
FTC Twitter
Helpful Links
Visit Florida FTC on Facebook!
Florida FIRST Resources
- Florida FIRST Robotics - info & contacts on FLL, FTC & FRC statewide
- Florida FIRST Tech Challenge
- Florida FIRST Robotics Regional Competition - FRC
- Florida FIRST at Chief Delphi Forums - unofficial
- Florida Robotics - Florida FIRST Lego League
- Robotics Boosters
FIRST Robotics Resources
- Carnegie Mellon FTC Robotics Academy
- FIRST - For Inspiration and Recognition of Science and Technology
- FIRST Robotics Resource Center
- FIRST Community
- FIRST Tech Challenge Blog
- FIRST Tech Challenge Chief Delphi Forum - unofficial
- FIRST Tech Challenge - high school
- FIRST Robotics Competition - high school
- FIRST LEGO League - elementary and middle school
- FIRST and PTC - ProE, MathCad and more
- FTC Engineering Notebook Guidelines
- FTC Wiki
- Non-Engineering Mentor Organization (NEMO)
- Official FIRST Tech Challenge Forum
- Resources for the FTC 2008-09 Challenge: Face Off
- The Effect of the FIRST Robotics Competition on High School Students – PDF
- TETRIX Robotics
My Goal is Everyone moves in Autonomous
Page 1 of 1 • Share •
My Goal is Everyone moves in Autonomous
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
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
Similar topics» Goal Notification Sound
» The common goal of anarchists?
» A Poet's Editing Moves
» Determine the specific goal you want to achieve.....
» When the Spirit moves you
» The common goal of anarchists?
» A Poet's Editing Moves
» Determine the specific goal you want to achieve.....
» When the Spirit moves you
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» Leadership Training Program for FIRST Mentors/Coaches and e-mail blast correction
» FTC Teams Email Blast - 04-17-12
» FTC Team Blast - March 28, 2012
» FTC Florida News - March 17, 2012
» FTC Team Blast - FEb. 28, 2012
» FTC Florida Championship - Email #2
» Team Blast 02-14-12 - Valentine's Day edition
» FTC Florida Championship - Email #1