View Single Post
  #4   Spotlight this post!  
Unread 18-02-2008, 03:52
iwin2000 iwin2000 is offline
Registered User
no team
 
Join Date: Dec 2007
Rookie Year: 2008
Location: CT
Posts: 23
iwin2000 has a spectacular aura aboutiwin2000 has a spectacular aura about
Re: Using Limit Switches with the Arm

Thank you both for your help. I'm pretty sure that I have a working limit switch code now

I took your eagle and made a truth table. This helped me out a lot while I was coding...

L1|L2|L3|L4|Disallow|
---------------------
T F F F Retraction - CHECK
T T F F Retraction - NOT INCLUDED
T F T F Retraction - NOT INCLUDED
T F F T Extention, Retraction, Rotation from where it came
F T F F Forward Rotation, Extention - CHECK
F F T F Reverse Rotation, Extention -
F F F T Extention, Retraction, Rotation from where it came
F F F F Allow all movement - NOT INLCUDED

I also found that my code was overcomplicated, and could have been simplified to the ones posted here: http://www.chiefdelphi.com/forums/sh...ad.php?t=60186

And popo, yeah I could have probably used an encoder, but this is my first year in FIRST (lol) and it is my team's second year, so we've not yet had to chance to use those, and with one day left we probably won't get to this season. I also didn't want to let my team down, they did a lot of work cutting stuff to hold the limit switches in place

With every year comes advancement...