![]() |
Encoders and distance (labview)
I'm trying to program for autonomous, using the encoders. However, the formula I'm using for finding the right number of ticks for one inch and such isn't working. Does anyone have a formula, or an input value for a distance of one inch? I'm using LabVIEW. Help me please ^^
|
Re: Encoders and distance (labview)
If you're using the encoder VIs, then they should be doing 4x decoding. That is, they'll return 4 ticks for every cycle of the encoder. So if your encoder is 1024 pulses/cycles per revolution, the VI will actually read 4096 ticks per revolution. After that, it's just properly figuring how many inches you have per revolution.
|
Re: Encoders and distance (labview)
Quote:
|
Re: Encoders and distance (labview)
The formula you are looking for is this
Code:
distance = (ticks) * (Gear Ratio) * (wheel diameter * pi)/(ticks per rev * scale)As I last saw them, the WPI Robotics Library encoder VI's had provisioning for real world unit distance feedback. The VI's had setters and getters for the gear ratio and distance travelled, respectively. |
| All times are GMT -5. The time now is 08:04. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi