mirror of https://github.com/ArduPilot/ardupilot
ACM-HIL: fixed optflow declaration
This commit is contained in:
parent
c56f3a9f8c
commit
2af5ff896d
|
@ -303,9 +303,13 @@ AP_GPS_HIL g_gps_driver(NULL);
|
|||
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);
|
||||
#endif
|
||||
#ifdef OPTFLOW_ENABLED
|
||||
#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>
|
||||
SITL sitl;
|
||||
|
|
Loading…
Reference in New Issue