From e36728d1db6a1f8ea25293fb504858923394964c Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 19 Oct 2015 18:06:56 -0200 Subject: [PATCH] RC_Channel: make example compile again By adding a missing library dependency. Also remove unnecessary includes, in particular including each board HAL file is not needed anymore. --- .../examples/RC_Channel/RC_Channel.cpp | 32 ------------------- .../RC_Channel/examples/RC_Channel/make.inc | 1 + 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/libraries/RC_Channel/examples/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/examples/RC_Channel/RC_Channel.cpp index 03b81d429f..3143d8cf6b 100644 --- a/libraries/RC_Channel/examples/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/examples/RC_Channel/RC_Channel.cpp @@ -11,40 +11,8 @@ #define CH_7 6 #define CH_8 7 -#include -#include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include const AP_HAL::HAL& hal = AP_HAL::get_HAL(); diff --git a/libraries/RC_Channel/examples/RC_Channel/make.inc b/libraries/RC_Channel/examples/RC_Channel/make.inc index fc2f90e91f..888b76626d 100644 --- a/libraries/RC_Channel/examples/RC_Channel/make.inc +++ b/libraries/RC_Channel/examples/RC_Channel/make.inc @@ -24,3 +24,4 @@ LIBRARIES += Filter LIBRARIES += GCS_MAVLink LIBRARIES += RC_Channel LIBRARIES += StorageManager +LIBRARIES += AP_OpticalFlow