From c3d0b315cf49324d1c0587e9bce9bf41f00709ed Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 22 Sep 2013 16:04:36 +1000 Subject: [PATCH] Plane: added HAL_LINUX includes --- ArduPlane/ArduPlane.pde | 1 + ArduPlane/config.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index e90440ddaf..eb067761d1 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -92,6 +92,7 @@ static AP_Vehicle::FixedWing aparm; #include #include #include +#include #include AP_HAL::BetterStream* cliSerial; diff --git a/ArduPlane/config.h b/ArduPlane/config.h index f420e4133e..d9d5aae9e5 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -131,6 +131,12 @@ # define CONFIG_BARO AP_BARO_BMP085 # define CONFIG_COMPASS AP_COMPASS_HMC5843 # define SERIAL0_BAUD 115200 +#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX + # define BATTERY_VOLT_PIN -1 + # define BATTERY_CURR_PIN -1 + # define CONFIG_INS_TYPE CONFIG_INS_STUB + # define CONFIG_BARO AP_BARO_HIL + # define CONFIG_COMPASS AP_COMPASS_HIL #endif