Thread: RELAY!!
View Single Post
  #4   Spotlight this post!  
Unread 03-11-2010, 12:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: RELAY!!

So you want the relay to be set "forward" if the joystick is pushed forward, you want the relay to be set "reverse" if the joystick is pulled backward, and you want the relay to be set "off" if the joystick is left at center?

The joystick Y-axis value will be negative if you push it forward. The value will be positive if you pull it backward. The value will be zero if you leave it at center. Does that help send you in the right direction?
Reply With Quote