View Single Post
  #6   Spotlight this post!  
Unread 21-02-2012, 12:39
hsekhon27 hsekhon27 is offline
Registered User
FRC #0280 (TNT)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Taylor, MI
Posts: 23
hsekhon27 is an unknown quantity at this point
Re: Need help with Encoders!!

Quote:
Originally Posted by Alan Anderson View Post
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.)
Thank You!