![]() |
Obtaining Velocity from an encoder
1 Attachment(s)
As far as I know, the WPI robotics library still has a glitch in that it cannot calculate the velocity from more than one encoder. So, I want to write manual code to calculate velocity.
Is the code in the picture sufficient, or should I be doing some averaging or some other way to get rid of noise? Note that it is just a quick mod of the example code. |
Re: Obtaining Velocity from an encoder
Quote:
Quote:
|
Re: Obtaining Velocity from an encoder
http://www.chiefdelphi.com/forums/showpost.php?p=1024424&postcount=54 got me through the 2011 season. It patches the bug in LV by not using the broken channels.
Also - You can change the direction of shift registers by right-clicking and hitting "change direction", to make it go from left->right instead of left<-right (just a neatness tip) |
Re: Obtaining Velocity from an encoder
Quote:
|
Re: Obtaining Velocity from an encoder
1 Attachment(s)
Quote:
It's a Z-1 operator. Feedforward has a different meaning in control theory. |
Re: Obtaining Velocity from an encoder
Thank you, apalrd for showing me that workaround. That'll do. And thanks, the left->right feedback is much neater.
|
| All times are GMT -5. The time now is 23:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi