Hallo bondia
So funktioniert's mit meinen asuro prima:
Externes Bild anzeigenCode:#include "asuro.h" int main(void) { unsigned int z; unsigned char taste1, taste2; Init(); taste2=PollSwitch(); while(1) { taste1=PollSwitch(); if (taste1 && (taste1==taste2)) { StatusLED(RED); MotorDir(RWD,RWD); MotorSpeed(0,120); for(z=0;z<250;z++) { Sleep(255); } } else { StatusLED(GREEN); MotorDir(FWD,FWD); MotorSpeed(120,120); } taste2=taste1; } return 0; }
http://www.youtube.com/watch?v=wfS5IBSm7Jc
Vielleicht läuft dein asuro nicht mit Motorspeed 120. (Mein asuro hat eine 1:6 Endübersetzung und der linke Motor dreht nicht rückwärts)
Gruß
mic







Zitieren

Lesezeichen