Browse Source

AP_HAL_Linux: Add optflow declaration

Add an empty driver for boards that are not bebop
master
Julien BERAUD 9 years ago committed by Andrew Tridgell
parent
commit
6f55f3734c
  1. 9
      libraries/AP_HAL_Linux/HAL_Linux_Class.cpp

9
libraries/AP_HAL_Linux/HAL_Linux_Class.cpp

@ -147,6 +147,12 @@ static Empty::RCOutput rcoutDriver; @@ -147,6 +147,12 @@ static Empty::RCOutput rcoutDriver;
static Scheduler schedulerInstance;
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
static OpticalFlow_Onboard opticalFlow;
#else
static Empty::OpticalFlow opticalFlow;
#endif
HAL_Linux::HAL_Linux() :
AP_HAL::HAL(
&uartADriver,
@ -175,7 +181,8 @@ HAL_Linux::HAL_Linux() : @@ -175,7 +181,8 @@ HAL_Linux::HAL_Linux() :
&rcinDriver,
&rcoutDriver,
&schedulerInstance,
&utilInstance)
&utilInstance,
&opticalFlow)
{}
void _usage(void)

Loading…
Cancel
Save