mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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::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)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user