|
Need help with encoders
I'm trying to read from a pair of US Digital E4P-250-250-D-D-D-B encoders, but I'm not sure how to get started with them. I am familiar with coding for FRC, as I have done it for past seasons. However, this is the first time I've been asked to work with encoders.
I've read up on the WPILib API and it looks as if reading from the encoders should be as simple as declaring an encoder, and then sticking encoderName.Get() in a printf statement. As is the case with many things in programming, it is not that easy.
I've already verified that the encoders and the DIO ports they are connected to are returning some sort of signal, so I'm pretty sure the problem is on my end.
Any help with would be really appreciated. Thanks in advance.
|