View Single Post
  #1   Spotlight this post!  
Unread 04-02-2009, 15:10
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Limit Switchers Logic Problem

I think the problem is that you blindly set the output to 0 when the switch is pressed. I think you want the logic to be something like this
Code:
IF left button is pressed
    IF left limit switch is pressed
        output = 0
    ELSE
        output = MOVE_LEFT_SPEED
You'll need something similar on the right side as well