Competition Language

What's New

Improved download video's audio quality

Download Version 1.0

About Competition Language

Competition Language is a library I created for RobotC. It was designed to make competition level robots easier to program. Some of the commands exist in Natural Language, however, I made them more adaptable or effective in Competition Language.

Downloading & Setup

How to Download

Competition Language is not predownloaded to your computer with RobotC like Natural Language is. You must download it yourself before you can use it in your program. Follow the steps below to download Competition Language to your computer.

  1. Open your file manager and paste this file location in the location bar. "C:\Program Files (x86)\Robomatter Inc\ROBOTC Development Environment 4.X\Includes"
  2. Now that its destination is opened, click the Download link
  3. Open another file manager window and go to your downloads to find the newly downloaded Competition Lanugage (it should be at the top when organized by date)
  4. Select Competition Language and right click on it selecting the cut feature.
  5. Go again to the other window with the location found before and right click in that window and paste it into that file location

For a walk through video of how to download Competition Language to your computer, watch my Video.

How to Setup

Now that you have download Competition Language to your computer you are ready to code. Unfortunatly, you can't just go through the tabs up top and turn on Competition Language like with Natural Language. Instead you must paste something into your program to tell it you want to use Competition Language. Just paste #include "Competition Language.c" at the top of your program but right after the pragma statements.

Commands

Math

ft
in
rot
deg
minutes
sec
millisec

mod(input, rate);
avg(a, b);
grt(a, b);
max(a, b);
min(a, b);
map(x, x1, x2, y1, y2);
constrain(x, a, b);
bound(x, x1, x2, y1, y2);

Timing and Speed

setSpeedAccuracy(accuracy);
sensorSpeed(variable, sensorPort);
encoderSpeed(variable, encoderPort);

seedSpeed(value);
querySpeed(variable, value);

until(condition);
doUntil(condition){body}

Robot Movement

encoderDegrees(port);
wheelDistance(diameter, degrees);
setActuator(port, value);
extendActuator(port);
retractActuator(port);

setDrive(leftDrive, rightDrive);
setDrive(leftFront, leftBack, rightFront, rightBack);
configDrive;
tankDrive(leftSpeed, rightSpeed);
singleJoystick(forwardSpeed, turningSpeed);
straffDrive(forwardSpeed, turningSpeed, straffSpeed);

LCD Commands

debugLCD;
debugVar[variable]
endDebug;

autonSelection(numberOfAutonomouses);
startAutonomousList{listOfAutonomousCodes}
startAutonomous(autonomousNumber):
endAutonomous;
endAutonomousList;

History