From 736f78a7a2319faaf0a653b6c0a4bb4cb13993af Mon Sep 17 00:00:00 2001 From: Julien BERAUD Date: Mon, 23 Nov 2015 20:18:13 +0100 Subject: [PATCH] AP_HAL_VRBRAIN: add empty optical flow No onboard optical flow on VRBRAIN --- libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.cpp b/libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.cpp index 6efa5937bd..93bb696986 100644 --- a/libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.cpp +++ b/libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.cpp @@ -35,6 +35,7 @@ using namespace VRBRAIN; static Empty::Semaphore i2cSemaphore; static Empty::I2CDriver i2cDriver(&i2cSemaphore); static Empty::SPIDeviceManager spiDeviceManager; +static Empty::OpticalFlow optflowDriver; //static Empty::GPIO gpioDriver; static VRBRAINScheduler schedulerInstance; @@ -116,7 +117,8 @@ HAL_VRBRAIN::HAL_VRBRAIN() : &rcinDriver, /* rcinput */ &rcoutDriver, /* rcoutput */ &schedulerInstance, /* scheduler */ - &utilInstance) /* util */ + &utilInstance, /* util */ + &optflowDriver) /* optflow */ {} bool _vrbrain_thread_should_exit = false; /**< Daemon exit flag */