View Single Post
  #2   Spotlight this post!  
Unread 05-02-2011, 01:22
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Using an Encoder to Measure Forklift Height

In begin.vi:
1) Digital input Open
2) DevRef to "Counter to digital Source"
3) DevRef to encoder open
4) Repeat 1 - 3 for second input of encoder
5) DevRef to encoder set RefNum
In teleop.vi:
6) Encoder get RefNum
7) DevRef to Encoder Get

The encoder get can return a ton of very useful things. If you set the encoder open.vi correctly, you could get the get function to return the direct height of the arm! You can also get the direction, if it's stopped, etc.
Reply With Quote