Makeblock-official/Makeblock-Libraries

Can't compile: 'class MeEncoderNew' has no member named 'GetCurrentSpeed'

Daemon2017 opened this issue · 5 comments

Hello!
Library installed as in manual, but the result is 'class MeEncoderNew' has no member named 'GetCurrentSpeed'.
image

hello,have you included the head code?like this:
image

Hello!

I've tried to change, but it doesn't help:
image

What else could be wrong in my code?

Hello!

Here is a problem:
In documentation on maleblock's site: float currentSpeed = motor1.GetCurrentSpeed();
Working code: float currentSpeed = motor1.getCurrentSpeed();

So, now everything is great :)

hi,you are right.Open the MeEncoderNew.cpp code and make sure the method "GetCurrentSpeed" is in it.
like this:
image

if not,you should update your libraries.

You should update your libraries.