mirror of https://github.com/ArduPilot/ardupilot
ACM-HIL: fixed optflow declaration
This commit is contained in:
parent
c56f3a9f8c
commit
2af5ff896d
|
@ -304,7 +304,11 @@ AP_Compass_HIL compass; // never used
|
|||
AP_Baro_BMP085_HIL barometer;
|
||||
AP_InertialSensor_Stub ins;
|
||||
#ifdef OPTFLOW_ENABLED
|
||||
AP_OpticalFlow_ADNS3080 optflow(OPTFLOW_CS_PIN);
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
AP_OpticalFlow_ADNS3080 optflow(&spi3_semaphore,OPTFLOW_CS_PIN);
|
||||
#else
|
||||
AP_OpticalFlow_ADNS3080 optflow(NULL,OPTFLOW_CS_PIN);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef DESKTOP_BUILD
|
||||
#include <SITL.h>
|
||||
|
|
Loading…
Reference in New Issue