From 6b2f0b955320141637a3dc4ad22d1d2b9a9473e7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 26 Mar 2014 12:15:45 +1100 Subject: [PATCH] AP_Vehicle: added defines for main vehicle types --- libraries/AP_Vehicle/AP_Vehicle.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index a4199d856a..f6014f6a34 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -19,6 +19,8 @@ parameters needed by multiple libraries */ +#include + class AP_Vehicle { public: @@ -44,4 +46,16 @@ public: }; }; +/* + define common vehicle build types. Note that the APM_BUILD_DIRECTORY + define is only available with makefile based build, not with + arduino. + Also note that code needs to support other APM_BUILD_DIRECTORY + values for example sketches + */ +#define APM_BUILD_APMrover2 1 +#define APM_BUILD_ArduCopter 2 +#define APM_BUILD_ArduPlane 3 +#define APM_BUILD_AntennaTracker 4 + #endif // AP_VEHICLE_H