Habe mal diesen Code
Code:#include "asuro.h" #include "ultrasonic.h" int i,j,abstand=200; // Variablen deklarieren int main(void) // Hier beginnt das Programm { Init(); while (1) //Endlosschleife { abstand = Chirp(); SerPrint("\r\n distanz in cm: "); PrintInt(abstand); while (abstand>10) { MotorDir(FWD,FWD); MotorSpeed(180,180); StatusLED(GREEN); abstand = Chirp(); SerPrint("\r\n distanz in cm: "); PrintInt(abstand); } // Bei Kollision: for (j=0;j<100;j++) // kurz warten { MotorDir(FREE,FREE); Sleep(255); } for (i=0;i<200;i++) { MotorDir(RWD,RWD); // rückwärts drehen MotorSpeed(120,0); BackLED(ON,ON); StatusLED(RED); Sleep(255); } for (j=0;j<100;j++) // kurz warten { MotorDir(FREE,FREE); Sleep(255); } }
ich muss doch noch ultrasonic.h ind den Ordner und ein neues MakefileCode:test.c:2:24: ultrasonic.h: No such file or directory test.c: In function `main': test.c:14: warning: implicit declaration of function `Chirp' test.c:15: warning: implicit declaration of function `SerPrint' test.c:16: warning: implicit declaration of function `PrintInt' test.c:49:10: warning: no newline at end of file test.c:49: error: parse error at end of input make: *** [test.o] Error 1
habe ich auch gemacht aber nichts anders ?????????????
Lg







Zitieren

Lesezeichen