From 88bc1fb4d3c1dbb9ed4a6954534540d3926dd46d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Aug 2014 17:55:00 +1000 Subject: [PATCH] AP_Rally: fixed build for non-standard vehicle types --- libraries/AP_Rally/AP_Rally.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Rally/AP_Rally.cpp b/libraries/AP_Rally/AP_Rally.cpp index be20444bb9..01de0b39c8 100644 --- a/libraries/AP_Rally/AP_Rally.cpp +++ b/libraries/AP_Rally/AP_Rally.cpp @@ -16,9 +16,11 @@ extern const AP_HAL::HAL& hal; #elif APM_BUILD_TYPE(APM_BUILD_APMrover2) #define RALLY_LIMIT_KM_DEFAULT 0.5 #endif -#else - #define RALLY_LIMIT_KM_DEFAULT 1.0 -#endif // APM_BUILD_DIRECTORY +#endif // APM_BUILD_DIRECTORY + +#ifndef RALLY_LIMIT_KM_DEFAULT +#define RALLY_LIMIT_KM_DEFAULT 1.0 +#endif const AP_Param::GroupInfo AP_Rally::var_info[] PROGMEM = { // @Param: TOTAL