habe jetzt das programm:


#include "asuro.h"
#include "myasuro.h"

int main(void)
{

int x=1; //X Variable als Zähler einführen und auf 1 setzen
Init();
while(1)
{
MotorDir(FWD,FWD);
MotorSpeed(100,100);
Msleep(200);
if ((PollSwitch()) && (x=1)) //Wenn Tastendruck und x=1
{
MotorDir(RWD,RWD);
MotorSpeed(100,100);
Msleep(300);
MotorDir(FWD,FWD);
MotorSpeed(0,195);
Msleep(300); //90Grad Drehung
x++; //x um 1 erhöhen (x wird 2)
}
if ((PollSwitch()) && (x=2)) //Wenn Tastendruck und x=2 (2. Tastendruck)
{
MotorDir(RWD,RWD);
MotorSpeed(100,100);
Msleep(300);
MotorDir(FWD,RWD);
MotorSpeed(195,195);
Msleep(300);
MotorSpeed(195,195);
Msleep(300); //Drehung 90Grad
//+Drehung 90Grad
x--; //x um 1 verringern (x wird wieder 1)
}
}
return 0;
}




aber die 2. klammer will er mmer noch nicht machen???