View Single Post
  #2   Spotlight this post!  
Unread 12-02-2011, 15:50
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: programming a limit switch

Should probably search Chief Delphi for answers.

However, you would use a DigitalInput object (http://mmrambotics.ca/wpilib/class_digital_input.html) and use the Get() function to check whether the switch is high or low.

The correspondence of TRUE to HIGH or FALSE to HIGH is dependent on your wiring.
Reply With Quote