Encoder Driver in C

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 ?

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

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.

No problem at all!