Here is my code. When I compile it, it doesn’t show any errors but when I try to work it on the robot, nothing happens. I tried to see if other parts of the code are affected, but the drive works fine.
while(true) {
if (vexRT[Btn8R] == 1)
{
motor[frontLeft] = 10;
motor[frontRight] = 63;
motor[backLeft] = 10;
motor[backRight] = 63;
}
else if (vexRT[Btn8L] == 1)
{
motor[frontLeft] = -10;
motor[frontRight] = -63;
motor[backLeft] = 10;
motor[backRight] = 63;
}
else
{
motor[frontLeft] = 0;
motor[frontRight] = 0;
motor[backLeft] = 0;
motor[backRight] = 0;
}