konsole aufmachen in das entsprechenden verzeichniss wechseln, und make all eintipen.
Druckbare Version
konsole aufmachen in das entsprechenden verzeichniss wechseln, und make all eintipen.
hä... blick ich jetzt überhaupt nicht mehr
ich hab ne bat datei-des is ja s gleiche-denk ich mal. dann erstellts wenns im Programmers notpad ohne fehler geht ne hex und andere dateien.. aber wenn Msleep und Encode_irgendwas vorkommen dann machts nur ne asuro.d und ne test.d!? irgend was is da scheiße!
was muss ich schreiben damit ich möglichst ohne msleep 1 sec lang rückwärts fahr und dann wieder normal?
das programmers notepad findet bei mir einen fehler in asuro.c?
das sollte eigentlich gehen.Code:#inlcude "asuro.h"
int main() {
int i;
MotorDir(RWD,RWD);
MotorSpeed(150,150);
for(i=0;i<1000;i++) {
Sleep(36);
}
MotorDir(FWD,FWD);
}
trozdemaber keine garantie :)
was für einen fehler in der asuor c?
poste bitte mal die fehlermeldung
Zitat:
C:\Dokumente und Einstellungen\Besitzer\Desktop\ASURO_src\FirstTry> make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
asuro.c: In function `__vector_2':
asuro.c:196: error: `switched' undeclared (first use in this function)
asuro.c:196: error: (Each undeclared identifier is reported only once
asuro.c:196: error: for each function it appears in.)
asuro.c: In function `__vector_14':
asuro.c:220: error: `encoder' undeclared (first use in this function)
asuro.c: In function `Encoder_Init':
asuro.c:463: warning: implicit declaration of function `Encoder_Set'
asuro.c: At top level:
asuro.c:470: warning: type mismatch with previous implicit declaration
asuro.c:463: warning: previous implicit declaration of `Encoder_Set'
asuro.c:470: warning: `Encoder_Set' was previously implicitly declared to return `int'
asuro.c: In function `Encoder_Set':
asuro.c:471: error: `encoder' undeclared (first use in this function)
asuro.c:471: error: `LEFT' undeclared (first use in this function)
asuro.c:472: error: `RIGHT' undeclared (first use in this function)
asuro.c: In function `PrintInt':
asuro.c:489: warning: implicit declaration of function `itoa'
asuro.c: In function `Go':
asuro.c:519: warning: implicit declaration of function `abs'
asuro.c:531: error: `encoder' undeclared (first use in this function)
asuro.c:531: error: `LEFT' undeclared (first use in this function)
asuro.c:532: error: `RIGHT' undeclared (first use in this function)
asuro.c: In function `Turn':
asuro.c:580: error: `encoder' undeclared (first use in this function)
asuro.c:580: error: `LEFT' undeclared (first use in this function)
asuro.c:581: error: `RIGHT' undeclared (first use in this function)
make: *** [asuro.o] Error 1
> Process Exit Code: 2
hast du vieleicht vergessen die asuro.h zu includieren?
was geht da ab? ich hab die asuro.h eingefügt, dann programmers notpad gestartet und dann war wieder die alte asuro.h drauf!?