#include <AP_HAL/AP_HAL.h> // to include SEMAPHORE namespace Canard { typedef ::HAL_Semaphore Semaphore; }