by mateuszs » Thu Apr 24, 2014 1:03 pm
by mateuszs
Thu Apr 24, 2014 1:03 pm
We are using RB-110 to build a robot. In the project we need to read data from digital encoder. This encoder sends digital pulses.
We're trying to capture flanks from the pulses using
rcservo_InPin(RCSERVO_PINS5)
As we understand, this gives as current digital value of the pulse. When we use a while loop to track changes the system seems to be too slow. Specs say that one rotation are 6000 signals, we get about 3000-5000, and it changes all the time.
Any sugestions for a more effective way?
We're using Lubuntu 10.04 from roboard.com webside and RoBoIO library
We are using RB-110 to build a robot. In the project we need to read data from digital encoder. This encoder sends digital pulses.
We're trying to capture flanks from the pulses using
rcservo_InPin(RCSERVO_PINS5)
As we understand, this gives as current digital value of the pulse. When we use a while loop to track changes the system seems to be too slow. Specs say that one rotation are 6000 signals, we get about 3000-5000, and it changes all the time.
Any sugestions for a more effective way?
We're using Lubuntu 10.04 from roboard.com webside and RoBoIO library