View Single Post
  #2   Spotlight this post!  
Unread 06-07-2015, 20:06
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Encoder programming help needed.

Doesn't the Encoder Get always read zero because of the Encoder Reset just before the Get?
You might want to run this in Debug and probe the wires to see what values you are getting.

It looks like the logic of when to Reset needs a little work.
The Reset can be moved into the True case, but you also need to add an interlock that doesn't do the Reset unless the button is False.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-07-2015 at 20:12.
Reply With Quote