Hallo Paul
Das "distance" sind mm. Maximalwert ist +/- 360. Also kann er so max 36 cm fahren (pro ein befehl).
Ich hab das jetzt mal mit GoTurn ausprobiert. Aber irgendwas haut bei mir mit den Werten noch nicht genau hin.
Code:
#include "asuro.h"
int main(void)
{
Init();
EncoderInit ();
while (1)
{
GoTurn(100,0,160);
GoTurn(0,90,160);
Msleep(200);
GoTurn(0,-180,160);
Msleep(200);
GoTurn(0,90,160);
Msleep(200);
GoTurn(200,0,160);
Msleep(200);
GoTurn(-300,0,160);
Msleep(1000);
}
return 0;
}
kannst ja mal ausprobieren, was Dein Asuro dazu sagt.
Auf jedenfall spielt hier schon der Schlupf der Raeder eine Rolle.
Ich haette nicht gedacht, dass das so auffaellt.
Gruss Asko.
Lesezeichen