I’m attempting to add functionality for a 3rd and 4th encoder by modifying the library code as suggested by:
“If you need better control of the interrupts used, or you want to
write a more efficient ISR, you can copy the library code from
PololuWheelEncoders.cpp into your own project and modify it as
necessary.”
However, when I attempt to compile my code, the original ISR and function definitions are still there. I get the error:
multiple definition of `__vector_7’ orangutan_app5 C:\home\david\libpololu-avr\src\PololuWheelEncoders\PololuWheelEncoders.cpp 256
I have removed all of the includes for wheel encoders functionality so that my includes list is as follows:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include "pololu/OrangutanDigital/OrangutanDigital.h"
#include "pololu/OrangutanMotors/OrangutanMotors.h"
#include "pololu/OrangutanLCD/OrangutanLCD.h"
#include "pololu/OrangutanTime/OrangutanTime.h"
#include "pololu/workaround.h"//#include <pololu/orangutan.h>
What am I missing here?