mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: add empty optical flow
No embedded optical flow on sitl
This commit is contained in:
parent
c0f65ff6e1
commit
d8bcb36530
|
@ -35,6 +35,7 @@ static Empty::GPIO emptyGPIO;
|
||||||
static Empty::Semaphore emptyI2Csemaphore;
|
static Empty::Semaphore emptyI2Csemaphore;
|
||||||
static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore);
|
static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore);
|
||||||
static Empty::SPIDeviceManager emptySPI;
|
static Empty::SPIDeviceManager emptySPI;
|
||||||
|
static Empty::OpticalFlow emptyOpticalFlow;
|
||||||
|
|
||||||
static SITLUARTDriver sitlUart0Driver(0, &sitlState);
|
static SITLUARTDriver sitlUart0Driver(0, &sitlState);
|
||||||
static SITLUARTDriver sitlUart1Driver(1, &sitlState);
|
static SITLUARTDriver sitlUart1Driver(1, &sitlState);
|
||||||
|
@ -62,7 +63,8 @@ HAL_SITL::HAL_SITL() :
|
||||||
&sitlRCInput, /* rcinput */
|
&sitlRCInput, /* rcinput */
|
||||||
&sitlRCOutput, /* rcoutput */
|
&sitlRCOutput, /* rcoutput */
|
||||||
&sitlScheduler, /* scheduler */
|
&sitlScheduler, /* scheduler */
|
||||||
&utilInstance), /* util */
|
&utilInstance, /* util */
|
||||||
|
&emptyOpticalFlow), /* onboard optical flow */
|
||||||
_sitl_state(&sitlState)
|
_sitl_state(&sitlState)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue