Probier mal sowas:
Code:unsigned int data[2] while(1) { LineData(data); while (!((data[0]>"wert1") && (data[0]<"wert2"))) { // dabei soll Wert 1 und Wert 2 die Spanne darstellen MotorDir(FWD,FWD); MotorSpeed(SpeedLeft,SpeedRight); } }
Probier mal sowas:
Code:unsigned int data[2] while(1) { LineData(data); while (!((data[0]>"wert1") && (data[0]<"wert2"))) { // dabei soll Wert 1 und Wert 2 die Spanne darstellen MotorDir(FWD,FWD); MotorSpeed(SpeedLeft,SpeedRight); } }
Lesezeichen