View Single Post
  #4   Spotlight this post!  
Unread 21-02-2012, 12:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Need help with Encoders!!

If you put the attached snippet in Teleop or inside a loop in Periodic Tasks, it should keep track of the maximum distance reported by the encoder as long as the "Reset" boolean is False. The True case resets the encoder and has a constant 0 wired to the output tunnel.

(The attachment is a VI Snippet. Save it and drag it into a LabVIEW block diagram and it will become live code.)
Attached Thumbnails
Click image for larger version

Name:	encoder max.png
Views:	26
Size:	19.3 KB
ID:	12032