So here is the problem 6 of my motors get stuck running and will not respond to the joystick
They are: Port 1, 6, 7 and 10 and its not just one and twn its six and seven as well
#pragma config(Motor, port1, arm1, tmotorNormal, openLoop)
#pragma config(Motor, port2, frontRight, tmotorNormal, openLoop)
#pragma config(Motor, port3, frontLeft, tmotorNormal, openLoop, reversed)
#pragma config(Motor, port4, backRight, tmotorNormal, openLoop, reversed)
#pragma config(Motor, port5, backLeft, tmotorNormal, openLoop)
#pragma config(Motor, port6, arm2, tmotorNormal, openLoop)
#pragma config(Motor, port7, arm3, tmotorNormal, openLoop)
#pragma config(Motor, port8, , tmotorNormal, openLoop)
#pragma config(Motor, port9, , tmotorNormal, openLoop)
#pragma config(Motor, port10, arm4, tmotorNormal, openLoop)
task main()
{
//Create "deadzone" variables. Adjust threshold value to increase/decrease deadzone
int X2 = 0, Y1 = 0, X1 = 0, threshold = 15;
//Loop Forever
while(1 == 1)
{
//Create "deadzone" for Y1/Ch3
if(abs(vexRT[Ch3]) > threshold)
Y1 = vexRT[Ch3];
else
Y1 = 0;
//Create "deadzone" for X1/Ch4
if(abs(vexRT[Ch4]) > threshold)
X1 = vexRT[Ch4];
else
X1 = 0;
//Create "deadzone" for X2/Ch1
if(abs(vexRT[Ch1]) > threshold)
X2 = vexRT[Ch1];
else
X2 = 0;
//Remote Control Commands
motor[frontRight] = Y1 - X2 - X1;
motor[backRight] = Y1 - X2 + X1;
motor[frontLeft] = Y1 + X2 + X1;
motor[backLeft] = Y1 + X2 - X1;
//raise
if(vexRT[btn5U] == 1)
{
motor[arm1] = 127;
motor[arm2] = -127;
motor[arm3] = -127;
motor[arm4] = 127;
}
else if(vexRT[btn5D] == 1)
{
motor[arm1] = -127;
motor[arm2] = 127;
motor[arm3] = 127;
motor[arm4] = -127;
}
else
{
motor[arm1] = 0;
motor[arm2] = 0;
motor[arm3] = 0;
motor[arm4] = 0;
}
//rollers
if(vexRT[btn6U] == 1)
{
motor[port8]=127;
motor[port9]=-127;
}
else if(vexRT[btn6D] == 1)
{
motor[port8]=-127;
motor[port9]=127;
}
else
{
motor[port8]=0;
motor[port9]=0;
}
}
}