Quote:
Originally Posted by RufflesRidge
Ryan is correct.
I highly recommend looking through Ryan's images above, step by step to see why your logic doesn't work the way you want it to (in addition to the fact that the code for the bottom mode isn't in a loop).
|
I'm gonna say it again. The logic I have in there for my limit switch for my bridge is 100% correct. It will work exactly as I need it to work. I've used that code before in teleop and it has worked. I have received this bit of code straight from
http://team358.org/files/programming...2009-/LabVIEW/
Look for limit switch example. It works.
All I'm trying to do is get the robot to move the distance to the bridge using the encoders. Stop when the distance has been met, then lower the bridge arm down until the limit switch is hit.
I'm a second year programmer who has never had experience with autonomous. Last year I never even got to it as I started programming in week 4(Conversation for a different thread). I will easily admit I'm not too confident in writing the bottom code, and that is why I came here.
All I'm asking for is some help. My competition begins tomorrow, and I would love if I could get this to work.
Come on and help me out