AP_HAL_SITL: add empty optical flow

No embedded optical flow on sitl
This commit is contained in:
Julien BERAUD 2015-11-23 20:15:41 +01:00 committed by Andrew Tridgell
parent c0f65ff6e1
commit d8bcb36530
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ static Empty::GPIO emptyGPIO;
static Empty::Semaphore emptyI2Csemaphore;
static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore);
static Empty::SPIDeviceManager emptySPI;
static Empty::OpticalFlow emptyOpticalFlow;
static SITLUARTDriver sitlUart0Driver(0, &sitlState);
static SITLUARTDriver sitlUart1Driver(1, &sitlState);
@ -62,7 +63,8 @@ HAL_SITL::HAL_SITL() :
&sitlRCInput, /* rcinput */
&sitlRCOutput, /* rcoutput */
&sitlScheduler, /* scheduler */
&utilInstance), /* util */
&utilInstance, /* util */
&emptyOpticalFlow), /* onboard optical flow */
_sitl_state(&sitlState)
{}