View Single Post
  #5   Spotlight this post!  
Unread 04-02-2015, 00:07
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Two limit switches, one button

Quote:
Originally Posted by tcjinaz View Post
Thanks. More "I needed to know that"
So, given "Normally Open" port true on open (and wiring GND to Signal on the DIO through the switch) and a 2.0V ish to 0.8 ish transition holding below 0.8V for more than 20nS, we will see WPI_SwitchGetLimitValueReturn true, and WPI_SwitchGetCount will increment.

When does WPI_SwitchGetLimitValueReturn reset? On a transition from -0.8V to 2.0V longer than 20nS?

The counter resets to zero on the call to Begin? And between autonomous and teleop?

I keep getting challenged (good questions, mostly) on stuff like this, so the ducks need to line up

TIA,

Tim
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote