diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde index 12807d4dec..5bd0c2087f 100644 --- a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde @@ -27,7 +27,7 @@ FastSerialPort0(Serial); // FTDI/console #define CONFIG_MPU6000_CHIP_SELECT_PIN 53 // MPU600 chip select pin //AP_OpticalFlow_ADNS3080 flowSensor; // for APM1 -AP_OpticalFlow_ADNS3080 flowSensor(A3); // override chip select pin to use A3 if using APM2 or APM2.5 +AP_OpticalFlow_ADNS3080 flowSensor(NULL,A3); // override chip select pin to use A3 if using APM2 or APM2.5 Arduino_Mega_ISR_Registry isr_registry; AP_TimerProcess scheduler; diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile new file mode 100644 index 0000000000..a5d5e7918b --- /dev/null +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile @@ -0,0 +1,2 @@ +BOARD = mega2560 +include ../../../AP_Common/Arduino.mk