hi,
es gibt noch viele, viele dinge beim asuro wo ich sehe, dass sie funktionieren aber noch nicht weiss warum. Habe jetzt z.b. folgenden code
ausprobiert, der asuro fährt (einigermassen) geradeaus und biegt 10cm vor einem hindernis nach links ab. probiere es mal...Code:#include "asuro.h" #include "ultrasonic.h" int main(void) { int abstand; Init(); abstand = Chirp(); while(1) { abstand = Chirp(); StatusLED(GREEN); if (abstand < 10) { StatusLED(RED); BackLED(ON,ON); EncoderInit(); GoTurn(0, -90, 150); } else { StatusLED(GREEN); BackLED(OFF,OFF); MotorDir(FWD, FWD); MotorSpeed(170, 150); } } return 0; }
hoffe es hilft...







Zitieren
Lesezeichen