View Full Version : Rotational Encoders?
DjMaddius
19-02-2010, 16:12
Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?
Or is there a specific way to use the rotational encoders? And if there is, how so?
Examples would be nice!
Yes.
INT32 count_encoder_1;
Encoder *m_encoder_1;
...
m_encoder_1 = new Encoder(1, 2, false, Encoder::k4X);
m_encoder_1->Reset();
m_encoder_1->Start();
...
count_encoder_1 = m_encoder_1->Get();
DjMaddius
19-02-2010, 16:31
Alright thanks :D
Alan Anderson
20-02-2010, 22:01
Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?
Or is there a specific way to use the rotational encoders? And if there is, how so?
Examples would be nice!
Are you talking about the magnetic angular position sensors? How to use them depends mostly on what you want to use them for. It would probably be easiest to read the analog sine/cosine values, which is appropriate for measuring something like the angle of an arm joint.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.