AP_OpticalFlow: fix for HAL_SITL rename

This commit is contained in:
Andrew Tridgell 2015-05-04 16:17:10 +10:00
parent 9f10e2d26c
commit 4ee54a8915
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const AP_Param::GroupInfo OpticalFlow::var_info[] PROGMEM = {
OpticalFlow::OpticalFlow(void) :
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
backend(new AP_OpticalFlow_PX4(*this))
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#elif CONFIG_HAL_BOARD == HAL_BOARD_SITL
backend(new AP_OpticalFlow_HIL(*this))
#else
backend(NULL)

View File

@ -10,7 +10,7 @@
#include <AP_Math.h>
#include <AP_HAL.h>
#include <AP_HAL_AVR.h>
#include <AP_HAL_AVR_SITL.h>
#include <AP_HAL_SITL.h>
#include <AP_AHRS.h>
#include <AP_Compass.h>
#include <AP_Declination.h>