Encoder Driver in C


#1

Hi,

At the moment, reading input from the encoder is not available in the C drivers and thereof, we cannot read how any rotations a motor actually made.

Do you know if the C drivers will be updated in the near future to include the encoder ?


#2

Hey Benjamin!

Are you sure? We have an example of how to use encoders with C in this directory: https://github.com/DexterInd/BrickPi_C/tree/master/Sensor_Examples

Specifically this example:

https://github.com/DexterInd/BrickPi_C/blob/master/Sensor_Examples/LEGO%20-%20Encoder%20Test.c


#3

Hi,

You’re right, sorry about that.
I misinterpretd the “not yet implemented” comment concerning the encoder offset in BrickPi.c.

Thanks for the link.


#4

No problem at all!