Thread: Encoder trouble
View Single Post
  #10   Spotlight this post!  
Unread 15-02-2010, 22:10
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: Encoder trouble

Quote:
Originally Posted by flameout View Post
Here's the code, it is attached....

The distance is increasing or decreasing at a seemingly constant rate (I may/may not be able to run some checks or watch it closer.) This rate is very high, on the order of 200 ft/sec.
I don't understand the second picture you posted. What are you looking at to see what the distance is doing? I see what looks like a while loop -- where is this code? What is it intended to do?