erstmal vielen dank, ich verlier bald den überblick 
also hier ist mal eine abgeänderte version, allerdings fährt er immer noch schon von beginn weg rückwärts
Code:
{
unsigned char s1,s2;
int i;
Init();
while(1)
{
s1=PollSwitch();
s2=PollSwitch();
if((s1=0)&&(s2=0))
{
FrontLED(ON);
BackLED(OFF,OFF);
MotorDir(FWD,FWD);
MotorSpeed(170,150);
StatusLED(GREEN);
}
else
{
MotorDir(RWD, RWD);
MotorSpeed(100,150);
StatusLED(RED);
FrontLED(OFF);
BackLED(ON,ON);
for (i=0; i < 250; i++) { Sleep(255); }
}
}
return 0;
}
Lesezeichen