Coding Issues (Unofficial)

@Bearcats

Referencing https://vexforum.com/t/coding-issues/43508/1

You have one of your conditions in a separate IfThenElse Statement from the other two. Every loop through the code, when 6U is pushed, it sets the motors, then it goes to the next IfThenElse statement and since 6D is NOT pushed, it does the Else condition and resets the motors to zero. Make it one big If Up, else if down, else statement.

If (vexRT[Btn6U] == 1)
{
motor[RightLift1] = 127;
motor[RightLift2] = 127;
motor[LeftLift1] = -127;
motor[LeftLift2] = -127;
}
elseif (vexRT[Btn6D] == 1)
{
motor[RightLift1] = -127;
motor[RightLift2] = -127;
motor[LeftLift1] = 127;
motor[LeftLift2] = 127;
}
else
{
motor[RightLift1] = 0;
motor[RightLift2] = 0;
motor[LeftLift1] = 0;
motor[LeftLift2] = 0;
}