![]() |
How to interface with absolute encoder using WPILib?
I am using the following absolute encoder:
http://www.mouser.com/ds/2/54/EMS22A-50229.pdf I has one digital out pin that spits out the position (0-1024) of the encoder. I have used two-channel encoders in the past with no issues but trying to figure out how to use the WPILib classes to read the position of this new absolute encoder. For some reason I'm having troubling finding sample code. Any help would be greatly appreciated! |
Re: How to interface with absolute encoder using WPILib?
Quote:
In the worst case you could probably bit-bang it (e.g. drive the clock and chip select pins as DigitalOutputs and use a DigitalInput to read the shifted serial data) but I'd see that as a last resort as it's significantly slower and processor intensive. |
| All times are GMT -5. The time now is 15:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi