View Single Post
  #7   Spotlight this post!  
Unread 20-02-2011, 22:01
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Re: Keeping track of Encoder Shaft Location using WPI Counter VI

I am not not sure why, may be my inexperience with LAB View..

I fully understand the states I need... even if I create a state machine, my problem is I can not properly keep track of Previous Count...

I played with a 3 state machine, end up with same problem, not keeping previous count properly... Suggestion of wiring two shift registers may work, but I played with this, still can not get it to work properly on reverse.. when needing to subtract from previous count

Can you please give example code, I can not move forward programing/calibrating the extension arm until I can properly keep track of previous count and subtract when reverse/retract button pressed...

Will appreciate help, a lot of time and still can not subtract properly when needed...

Thanx... Mark
Reply With Quote