I have students who built the VEX EDR Super Claw Bot. I have a coding issue. The Code that we developed has an inifite loop, and it won’t download to the robot. I have inserted my code.
task main()
{
while (true){
#pragma config(Sensor, in1, LeftLine, sensorReflection)
#pragma config(Sensor, in2, CenterLine, sensorReflection)
#pragma config(Sensor, in3, RightLine, sensorReflection)
#pragma config(Sensor, dgtl1, UltrasonicOut, sensorDigitalOut)
#pragma config(Sensor, dgtl2, UltrasonicIn, sensorDigitalIn)
#pragma config(Sensor, dgtl3, UpperLimit, sensorTouch)
#pragma config(Sensor, dgtl4, LowerLimit, sensorTouch)
#pragma config(Sensor, dgtl5, Bumper, sensorTouch)
#pragma config(Sensor, dgtl6, LowerEncoder, sensorQuadEncoder)
#pragma config(Sensor, dgtl8, Shoulder, sensorQuadEncoder)
#pragma config(Motor, port1, LeftDrive, tmotorVex393_HBridge, openLoop, reversed, driveLeft)
#pragma config(Motor, port2, Claw, tmotorServoContinuousRotation, openLoop, driveLeft)
#pragma config(Motor, port3, Wrist, tmotorServoContinuousRotation, openLoop, driveLeft)
#pragma config(Motor, port4, Elbow, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port5, Shoulder, tmotorNone, openLoop)
#pragma config(Motor, port10, RightDrive, tmotorVex393_HBridge, openLoop, driveRight)