Thread: Limit Switches
View Single Post
  #5   Spotlight this post!  
Unread 09-03-2016, 00:18
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: Limit Switches

I think your problem is the values going to the bottom range input of the In Range and Coerce function. The select function controlled by the TuskBottomStop switch will give it either 0 or 1, which will keep the motor from ever going down, and will force the motor to go up when the switch is pressed.

Try changing the 1 to a -1 instead.
Reply With Quote