Thread
:
Encoder::GetRate()
View Single Post
#
5
26-05-2010, 13:28
mikets
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
Re: Encoder::GetRate()
I am sorry if I don't understand. If the goal is to get velocity, wouldn't it be easier to do this instead:
Code:
vel = (currentDistance - previousDistance)/period;
This should work unless there is a problem with GetDistance() too.
__________________
mikets
View Public Profile
Visit mikets's homepage!
Find all posts by mikets
Find CD-Media Photos by mikets
Find CD-Media Papers by mikets