PID: fixed example build

This commit is contained in:
Andrew Tridgell 2012-12-19 11:04:04 +11:00
parent 393455cdbb
commit 62bfded26c
1 changed files with 4 additions and 5 deletions

View File

@ -11,11 +11,10 @@
#include <PID.h> // ArduPilot Mega RC Library #include <PID.h> // ArduPilot Mega RC Library
#include <AP_HAL_AVR.h> #include <AP_HAL_AVR.h>
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2 #include <AP_HAL_AVR_SITL.h>
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2; #include <AP_HAL_Empty.h>
#else
const AP_HAL::HAL& hal = AP_HAL_AVR_APM1; const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
#endif
long radio_in; long radio_in;
long radio_trim; long radio_trim;