mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
AP_HAL_Linux: Add optflow declaration
Add an empty driver for boards that are not bebop
This commit is contained in:
parent
8b21dc9b22
commit
6f55f3734c
@ -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() :
|
||||
&rcinDriver,
|
||||
&rcoutDriver,
|
||||
&schedulerInstance,
|
||||
&utilInstance)
|
||||
&utilInstance,
|
||||
&opticalFlow)
|
||||
{}
|
||||
|
||||
void _usage(void)
|
||||
|
Loading…
Reference in New Issue
Block a user