Vielen Dank m.a.r.v.i.n, jetzt hat es geklappt.
Noch eine Frage zur Ausgabe der Daten via RS232:
Beim Übersetzen von folgendem (Codeschnipsel):
Code:
lcd_setCursor(0,1);
printf("L: %3x %3x %3x ", rval,cval,lval);
writeString("Liniensensoren: ");
writeInteger(rval);
writeInteger(cval);
writeInteger(lval);
odoL += odometry_getLeft(1);
odoR += odometry_getRight(1);
lcd_setCursor(0,2);
printf("O: %4d %4d", odoR,odoL);
writeString("Odometriesensoren: ");
writeInteger(odoR);
writeInteger(odoL);
_delay_ms(500);
schimpft er mit:
Code:
Build started 7.12.2009 at 17:24:18
avr-gcc -I"C:\Users\HP\Documents\NibobeeTest\..\..\..\..\Program Files\NIBObeeLib\include" -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99 -D_NIBOBEE_ -DF_CPU=15000000UL -Os -fsigned-char -MD -MP -MT NibobeeTest.o -MF dep/NibobeeTest.o.d -c ../Nib
obeeTest.c
../NibobeeTest.c: In function 'writeInteger':
../NibobeeTest.c:53: warning: implicit declaration of function 'itoa'
../NibobeeTest.c: In function 'main':
../NibobeeTest.c:220: error: too few arguments to function 'writeInteger'
../NibobeeTest.c:221: error: too few arguments to function 'writeInteger'
../NibobeeTest.c:222: error: too few arguments to function 'writeInteger'
../NibobeeTest.c:229: error: too few arguments to function 'writeInteger'
../NibobeeTest.c:230: error: too few arguments to function 'writeInteger'
../NibobeeTest.c:112: warning: unused variable 'speed_r'
../NibobeeTest.c:111: warning: unused variable 'speed_l'
make: *** [NibobeeTest.o] Error 1
Build failed with 5 errors and 3 warnings...
Was ist hier wieder falsch von mir?
P.S. Danke an m.a.r.v.i.n! Anbei ein Foto meiner Bee mit LCD-Display
Lesezeichen