Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Motor Posistion Reset Help (http://www.chiefdelphi.com/forums/showthread.php?t=132212)

personman12905 06-01-2015 01:32

Motor Posistion Reset Help
 
1 Attachment(s)
So i'm trying to program a motor for our lift system. What I want it to do is to rotate one direction when I press one button until the button is released. Then I want it to rotate the opposite direction when a different button is pressed, and stop when it is released. Then I have a limit switch at the top and bottom of the lift to shut off the motor when they're hit. The final thing I need is for when the two buttons for lifting and lowering are pressed simultaneously, I want the motor to bring the lift all the way down until the lower limit switch is hit. This reset function needs to be just a quick button press for it to bring all the way down, not holding the buttons until it gets down. The reset function is what I really need help with.

I hope I explained this well enough. If you're not sure what I'm asking, let me know and i'll try to clarify. I've attached what i have so far in Begin and Teleop. Our team hasn't built anything yet, so I'm not exactly sure what any of what I have yet will do either (stressful)

Thanks!
Team 2183


All times are GMT -5. The time now is 02:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi