Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch IntakeLifter to use a Counter instead of a DigitalInput #179

Open
BenBernardCIS opened this issue Apr 7, 2016 · 0 comments
Open

Comments

@BenBernardCIS
Copy link
Contributor

https://wpilib.screenstepslive.com/s/3120/m/7912/l/170868-using-limit-switches-to-control-behavior

"It's possible that a limit switch might close then open again as a mechanism moves past the switch. If the closure is fast enough the program might not notice that the switch closed. An alternative method of catching the switch closing is use a Counter object. Since counters are implemented in hardware, it will be able to capture the closing of the fastest switches and increment it's count. Then the program can simply notice that the count has increased and take whatever steps are needed to do the operation."

@BenBernardCIS BenBernardCIS changed the title Switchin IntakeLifter to use a Counter instead of a DigitalInput Switch IntakeLifter to use a Counter instead of a DigitalInput Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant