
Re: DC motor name on RobotC
l0jec helped fix part of our problem

but now when we try to compile and download our program we get the popup widow that says
Byte Code Interpreter Exception:
Program Slot: 0. Task ID: main[0]
Error at PC: Task: main+0x0042
Task PC: Task offset start(0).
TaskState: 'Exception'
Exception Type: 'Motor out of range (2)'
Our Robot is only 3 feet away from the laptop. Our code as of now:
#pragma config(Motor, mtr_S1_C1_1, motorLeft, tmotorNormal, openLoop, encoder)
#pragma config(Motor, mtr_S1_C1_2, motorRight, tmotorNormal, openLoop,encoder)
#pragma config(Servo, srvo_S1_C2_1, servo1, tServoNone)
#pragma config(Servo, srvo_S1_C2_2, servo2, tServoNone)
#pragma config(Servo, srvo_S1_C2_3, servo3, tServoNone)
#pragma config(Servo, srvo_S1_C2_4, servo4, tServoNone)
#pragma config(Servo, srvo_S1_C2_5, servo5, tServoNone)
#pragma config(Servo, srvo_S1_C2_6, servo6, tServoNone)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
#include "JoystickDriver.c" // This file does all of the processing of the BT Packet
task main()
{
while (true)
{
getJoystickSettings(joystick);
//Check for new BT Packet and update the variables for the joystick positions
motor[motorLeft] = joystick.joy1_y1;
motor[motorRight] = joystick.joy1_y2;
}
}