View Single Post
  #2   Spotlight this post!  
Unread 22-10-2009, 11:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote