Im trying to make a header class file but im having problems with the virtual void call..
here is my code for the class
class Receiver {
public:
int transmitterCommand[LASTCHANNEL];
Receiver(void) {
transmitterCommand[ROLL] = 1500;
transmitterCommand[PITCH] = 1500;
transmitterCommand[YAW] = 1500;
transmitterCommand[THROTTLE] = 1000;
}
virtual void read(void);
const int getData(byte channel) {
return transmitterCommand[channel];
}
//transmitterCommand[PITCH] = 1300;
};
class Receiver_Quadroid : public Receiver {
public:
void read(void){
transmitterCommand[ROLL] = 1800;
transmitterCommand[PITCH] = 1800;
}
};
Im getting this error
" <BUILD>\/Receiver2.h:21: undefined reference to `vtable for Receiver' "
In the arduino IDE it works without any erros.. can anyone help?
Thanx