Quote:
Originally Posted by mikel392
|
Code:
if (joyExtra.getRawButton(4))
{
liftup();
}
else
{
liftstop();
}
if (joyExtra.getRawButton(2))
{
liftdown();
}
else{
liftstop();
}
If button 4 is pressed, it starts the lift running up, but then the fact that button 2 is not pressed stops it immediately. You need to change the logic so that button 4 runs the lift up, button 2 runs the lift down, and only if neither button is pressed does the lift get stopped.