View unanswered posts | View active topics It is currently Fri Aug 07, 2020 6:02 am

Reply to topic  [ 2 posts ] 
Vex one minute autonomous question. 
Author Message

Joined: Wed Dec 21, 2011 4:22 pm
Posts: 26
Post 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?

Tue Sep 25, 2012 7:59 am
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post 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:
#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).

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Tue Sep 25, 2012 5:24 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.