What does the angle parameter


#1

Hello.

In the MeEncoderMotor lib there are a few variables (parameters) i don;t know what they do. The parameters are turns, and angle. I thought a motot had only a speed parameter. Who can help me and explain what turn en angle do.

With regards
Aant


#2

Hi Aant,

You may refer to this library: http://learn.makeblock.com/cn/Makeblock-library-for-Arduino/files.html
Hope it helps.


#3

Thanks, but it doesn’t help, it only say angle = the motor angle.
I’ am planning to make a 3 wheeld robot with 2 motors. As i see it angle or turns doesn;t a thing. But the fucntion moveto(angle, speed) needs a number. So i would like to know what it does. En looking at the code doesn;t help because it is put in a buf array and that is passed to the ME-Encoder-motor driver…


#4

Hi @Aant,

Looking at the source, the description uses the term “aim” where it likely means goal or objective. An encoded motor (as opposed to a hobby gearmotor), can measure the rotations or portions of a rotation. Normally this occurs with encoded motors and more specifically with stepper motors. I would suggest that if you put in an angle measurement you will find that the motor turn to that distance and stop based on how encoders work. However, you might give it a try to see if that is the case. :slight_smile:

Regards,

Chuck


#5