I'm using the Axon2 with the Maxbotix EZ1 and everything works good.
But when i implement the GP2.h header to use a Sharp GP2D12 sensor together with the Maxbotix, I get
this error:
avr-gcc -I"C:\My_Robot\WebbotLib" -I"C:\My_Robot\WebbotLib\Sensors\Distance\Maxbotix" -I"C:\My_Robot\WebbotLib\Motors\DimensionEngineering" -I"C:\My_Robot\WebbotLib\Sensors\Distance\Sharp" -mmcu=atmega640 -Wall -gdwarf-2 -std=gnu99 -DF_
CPU=16000000UL -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT Servos.o -MF dep/Servos.o.d -c ../Servos.c
When I delete the Sharp header and all the code in my program to use it, everything gets back to normal!!
Is it possible to have a conflict here, since both the EZ1.h and the GP2.h use the same header a2d.h ?
If so, how am I suppose to use an EZ1 sensor together with a Sharp sensor in my robot?
Any ideas?
Thanks!
Theo