Hallo miteinander,
Hatte dieses schöne Programm geschrieben, doch leider gibt es bei Ausführung von make all eine Fehlermeldung. Könnte mir dabei jemnd helfen wäre echt super nett.
Make all
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 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.
Compiling: FWDBWD.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=FWDBWD.lst -I../../RP6Lib -I../../RP6Lib/RP6base -I../../RP6Lib/RP6common -std=gnu99 -MD -MP -MF .dep/FWDBWD.o.d FWDBWD.c -o FWDBWD.o
FWDBWD.c: In function 'main':
FWDBWD.c:12: warning: implicit declaration of function 'Dist_MM'
FWDBWD.c:12: error: expected ')' before ';' token
FWDBWD.c:19: error: too few arguments to function 'move'
FWDBWD.c:19: error: expected ';' before '}' token
FWDBWD.c:19: error: expected declaration or statement at end of input
FWDBWD.c:9: warning: unused variable 'distance'
FWDBWD.c:8: warning: unused variable 'dir'
make.exe: *** [FWDBWD.o] Error 1
> Process Exit Code: 2#include "RP6RobotBaseLib.h"
Programm
int main(void)
{
initRobotBase();
powerON();
uint8_t dir;
uint16_t distance;
while(true)
{
move(30,FWD,Dist_MM(300);
moveAtSpeed(0,0);
move(30,BWD,Dist_MM(300);
moveAtSpeed(0,0);
}
return 0;
}[/B]
Lesezeichen