|
Re: Help with simple program
Your logic has a problem
The right joystick, because it comes second, overrides all your left joystick logic.
You need to turn off the bottom rollers only if both left AND right joysticks are off.
Along the line of:
Code:
if (rightjoystick) {
//turn everything on
}
else if (leftjoystick) {
//turn botton rollers on
//turn top rollers off
} else
//turn everything off
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 22-10-2009 at 12:42.
|