Skip to content

Instantly share code, notes, and snippets.

#pragma config(Sensor, dgtl10, BumperLeft, sensorTouch)
#pragma config(Sensor, dgtl11, BumperRight, sensorTouch)
#pragma config(Sensor, dgtl12, BumperMiddle, sensorTouch)
#pragma config(Motor, port2, rightMotor, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port3, leftMotor, tmotorServoContinuousRotation, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*----------------------------------------------------------------------------------------------------*\
|* - Moving Forward - *|
|* ROBOTC on VEX 2.0 CORTEX *|
#pragma config(Sensor, dgtl1, up, sensorTouch)
#pragma config(Sensor, dgtl2, down, sensorTouch)
#pragma config(Motor, port6, armMotor, tmotorVex393_MC29, openLoop, encoderPort, I2C_3)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
//Loop Forever
while(1 == 1)
{
#pragma config(Sensor, dgtl1, up, sensorTouch)
#pragma config(Sensor, dgtl2, down, sensorTouch)
#pragma config(Sensor, dgtl3, upLimit, sensorTouch)
#pragma config(Sensor, dgtl4, downLimit, sensorTouch)
#pragma config(Motor, port6, armMotor, tmotorVex393_MC29, openLoop, encoderPort, None)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
//Loop Forever
#pragma config(Motor, port2, rightMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, leftMotor, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port6, armMotor, tmotorVex393_MC29, openLoop, reversed)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*---------------------------------------------------------------------------*/
/* */
/* Description: Competition template for VEX EDR */
/* */
/*---------------------------------------------------------------------------*/