I'm trying to compile the Arducopter sketch with an addition that I made. I'm having problems with the compiler not recognizing delay and uint8_t. And when I include the core files I get an error because I am redeclaring definitions. Here is a copy of one of the errors:
error: ambiguates old declaration 'int digitalRead(uint8_t)'
compat.ino: In function 'uint8_t digitalRead(uint8_t)':
Is there a different definition of uint8_t for the Arducopter compiler or what are the correct header files I should be looking at? Thanks in advance!