PDA

View Full Version : optical encoder feedback windriver


darkorbit
01-17-2009, 12:13 PM
I'm just wondering how do I recieve data back from the optical encoder using windriver? Do I see it threw the console? or debug window? This is my code:


INT32 encoderValue = myEncoder.get();
cout << encoderValue;

wt200999
01-17-2009, 01:15 PM
I'm just wondering how do I recieve data back from the optical encoder using windriver? Do I see it threw the console? or debug window? This is my code:


INT32 encoderValue = myEncoder.get();
cout << encoderValue;

You should see it either one. Make sure you have myEncoder.Start(); as well

darkorbit
01-17-2009, 01:34 PM
You should see it either one. Make sure you have myEncoder.Start(); as well

I added that but I still get nothing.