And Other Core Files


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!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –


  • I guess I figured this out. All of the declarations are in AP_HAL.h. This is why the core files are ignored.

This reply was deleted.


Hiroki Tanaka liked Hiroki Tanaka's profile
Oct 13
Derrick Davies liked lisa TDrones's profile
Sep 23