Hi!
Ich habe jetzt seit einiger Zeit einen Asuro.
Wenn ich die Taster mit folgendem Programm programmieren will funktioniert es allerdings nicht.
Der ASURO fährt einfach geradeaus und hält nochnichtmal an.
[/code]Code:#include "asuro.h" int main(void) { Init(); unsigned char ta; int z; for(;;) { ta = PollSwitch() ; for(;ta==0;) { MotorDir(FWD,FWD); MotorSpeed(150,150); } MotorDir(RWD,BREAK); MotorSpeed(190,0); for (z=0;z<300;z++) {Sleep(216);} } while(1); return 0; }
Lesezeichen