Hi
I am using webbotlib and webbotlib project designer for the first time and have written my code. (it is not the best, it is my way of teaching myself to use webbotlib, as well as the majority of C)
I am writing code for a object avoiding robot, using a Sharp IR, 2 continuous rotation servos, 1 servo for scanning(that i am not using in the original program) and the MCU is a mega328.
my problem is i am getting the error "/a2d.h:210 undefined reference to "AVcc_MV' "
my code is a as follows
#include "hardware.h"
#include "servos.h"
int speed;
int distanceRead;
// Initialise the hardware
void appInitHardware(void) {
initHardware();
}
// Initialise the software
TICK_COUNT appInitSoftware(TICK_COUNT loopStart){
return 0;
}
// This is the main loop
TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart) {
while(1);
{
if(distanceRead > 100)
{
act_setSpeed(&servo_left,50);
act_setSpeed(&servo_right,0);
}
else
{
act_setSpeed(&servo_left,50);
act_setSpeed(&servo_right,50);
}
delay_cycles(500);
}
return 0;
}
help as to what my problem might be and any suggestions when it comes to the writing of the program would be greatly appreciated.
thanks
Aligator