Using Limit Switch during Auton in V5 Blocks

Hey all,

We’re having some difficulty getting our limit switch working in V5 blocks - does anyone want to share screen shots of how they use theirs? Thank you in advance!

if button pressed and limit switch NOT triggered, do something
If button pressed and limit switch triggered, do nothing

You need an if/then statement along with an ‘and’ logic item.

1 Like

We don’t use buttons in auto, so what would be the alternative?

Can you explain what you are trying to accomplish? Perhaps share the code you have so far?

just remove the button part and detect for limit/bumper pressed