Hello I am trying to program my robot but I am having troubles doing so. My claw works great, but my lift is all messed up. The left side of the lift will not work. Then the right side stalls and works half the time. Any advise is awesome, thank you. The program is below.
task main()
{
while(true)
if(vexRT[Btn5U] == 1)
{
motor[rightclaw] = -127;
}
else if (vexRT[Btn5D] == 1)
{
motor[rightclaw] = 127;
}
else
{
motor[rightclaw] = 0;
if(vexRT[Btn5U] == 1)
{
motor[leftclaw] = -127;
}
else if (vexRT[Btn5D] == 1)
{
motor[leftclaw] = 127;
}
else
{
motor[leftclaw] = 0;
if(vexRT[Btn6U] == 1)
{
motor[middleliftleft] = -127;
}
else if (vexRT[Btn6D] == 1)
{
motor[middleliftleft] = 127;
}
else
{
motor[middleliftleft] = 0;
if(vexRT[Btn6U] == 1)
{
motor[middleliftright] = -127;
}
else if (vexRT[Btn6D] == 1)
{
motor[middleliftright] = 127;
}
else
{
motor[middleliftright] = 0;
if(vexRT[Btn6U] == 1)
{
motor[toprightlift] = -127;
}
else if (vexRT[Btn6D] == 1)
{
motor[toprightlift] = 127;
}
else
{
motor[toprightlift] = 0;
if(vexRT[Btn6U] == 1)
{
motor[topleftlift] = -127;
}
else if (vexRT[Btn6D] == 1)
{
motor[topleftlift] = 127;
}
else
{
motor[topleftlift] = 0;
}
}
}
}
}
}
}Edit: @jpearman I formatted your code and placed in "code" tags (so the formatting is kept). Perhaps you can see some of the issues now.
