Programming instructions
ROBOTC
ROBOTC Programming - Competition Templates • 1
©
2011 Carnegie Mellon Robotics Academy / For use with VEX Robotics Systems
ROBOTC Programming Competition Templates
1. OpenROBOTC for Cortex and PIC.
1. Open ROBOTC for Cortex and PIC
OpenROBOTC for Cortex and PIC
fromyourDesktoporStartMenu.
This document is part of a software inspection guide for VEX based robots. Use this document to
learn how to use the “Competition Template” or “Driver Skills Template” included with ROBOTC.
For the most up-to-date versions of the templates (and ROBOTC) download the latest
version of ROBOTC for Cortex and PIC at www.robotc.net.
Youwillneed:
• AcomputerwithROBOTCforCortexandPIC2.32orlaterinstalled(availableatwww.robotc.net)
Part I. Using the ROBOTC Competition Template
2. TobeginprogramminginaCompetitionTemplate,gotoFile>New...andselectCompetition Template.
task main()
{
//User code goes here
}
Normal Programming vs. Competition Programming
InROBOTC,everyprogramisusuallybasedaroundtask main(),asshownbelow:
InaVEXcompetition,however,therobotsneedtocommunicatewiththeeldcontrolsystem,so
programmingisalittledifferent.Tokeepthingssimple,ROBOTCcomeswithbuilt-inCompetition
andDriverSkillstemplates.Thetemplatescontainsthreemainsections,eachmappedtospecic
portionsofthecompetition,whereteamsshouldplacetheircode.
VEX ROBOTICS COMPETITION