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!

Views: 165

Reply to This

Replies to This Discussion

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

Reply to Discussion



Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service