Thread: Limit Switches
View Single Post
  #1   Spotlight this post!  
Unread 25-01-2008, 06:37
ChrisR_522's Avatar
ChrisR_522 ChrisR_522 is offline
Registered User
FRC #0522 (Robo Wizards)
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Staten Island, New York
Posts: 20
ChrisR_522 is an unknown quantity at this point
Send a message via AIM to ChrisR_522 Send a message via MSN to ChrisR_522
Limit Switches

How can we go about thoroughly programming the limit switches to control a specific motor using MPLab,
ex: if ((dig_in03)) { pwm03 = p3_y; } else { pwm03 = 127; }
Is that the correct way?

Any help would be greatly appreciated, Thanks!
__________________
http://robowizards.com/
http://img.photobucket.com/albums/v83/DAL_762/robowizards522animation.gif?t=1168394300