![]() |
E4P Encoder Scaling
This is the comment for the Encoder::SetDistancePerPulse() method:
Quote:
Quote:
Code:
pLeftEncoder->SetDistancePerPulse((3.14*(8.0/12.0))/360.0); |
Re: E4P Encoder Scaling
The 4x decoding mode can have trouble when the phases of the encoder are not perfectly 90 degrees apart (most encoders aren't) and the encoder is spinning fairly fast. I recommend 1x decoding for the drivetrain. It should still give you more than enough accuracy. See if that clears things up at all.
Also, the stupid question, your encoders are attached directly to your wheels/wheel shafts right? Or a shaft attached to the wheels/wheel shafts by a 1:1 ratio? |
Are you sure your encoders aren't actually 250 counts instead of 360? That would account for your discrepancy.
|
Re: E4P Encoder Scaling
1 Attachment(s)
Quote:
P/N E4P-250-250-D-D-D-B from 2009 KoP (see attachment) |
Re: E4P Encoder Scaling
Thanks!! That must be it. If I plug in the 250 value it gets me the speeds I expected. I will confirm the P/N's on the encoders but I am confident that will be the solution. Thanks again.
|
| All times are GMT -5. The time now is 00:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi