ROBOTC.net forums
http://www.robotc.net/forums/

Vex one minute autonomous question.
http://www.robotc.net/forums/viewtopic.php?f=53&t=4890
Page 1 of 1

Author:  themigthy [ Tue Sep 25, 2012 7:59 am ]
Post subject:  Vex one minute autonomous question.

This year I have decided to take the programing skills challenge for the vex sack attack competition, but I don't know what template do I have to use? Do I use a programing template or just a regular new file?

Author:  JohnWatson [ Tue Sep 25, 2012 5:24 pm ]
Post subject:  Re: Vex one minute autonomous question.

You will want to use one of the competition templates (File-> New-> Competition Template). There are three sections; Pre-Auton, Autonomous, and User Control.

Pre-Auton is used to 'set up' your robot before the competition. It's generally used to set servo positions, calibrate sensors, etc. Make sure you don't put any code in here that could disqualify your robot (such as having the robot move off the start area).

Autonomous is the section for all the autonomous code. This section is where you'll want to focus on and put your code in.

User Control is the section for all the user-control code. You can safely ignore this section if you are just doing the autonomous challenge.

The program is controlled by the physical Competition switch and will end once the 'disabled' switch is thrown. You can simulate the full one-minute competition by changing the 20 second duration limit in the:
Code:
#pragma autonomousDuration(20)

statement to 60.

You can also use the Competition Control debugger window (Robot -> Debugger Windows -> Competition Control) to simulate the three phases of the competition.

We have a fairly detailed wiki page on the competition templates you may wish to take a look at, as well as an up-to-date Software Inspection Guide (definitely recommended).

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/