Competition Language | ||||
What's New | About | Downloading & Setup | Commands | History |
Improved download video's audio quality
Download Version 1.0
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.
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.
For a walk through video of how to download Competition Language to your computer, watch my Video.
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.
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);
setSpeedAccuracy(accuracy);
sensorSpeed(variable, sensorPort);
encoderSpeed(variable, encoderPort);
seedSpeed(value);
querySpeed(variable, value);
until(condition);
doUntil(condition){body}
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);
debugLCD;
debugVar[variable]
endDebug;
autonSelection(numberOfAutonomouses);
startAutonomousList{listOfAutonomousCodes}
startAutonomous(autonomousNumber):
endAutonomous;
endAutonomousList;