From 9a159a5e236d6dbcbe746178cf2bb1a58d899027 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Jul 2013 09:56:45 +1000 Subject: [PATCH] Copter: make wp_distance static removed hack with AP_Camera library --- ArduCopter/ArduCopter.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 3aa4bb634c..626c90589d 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -494,8 +494,8 @@ static int32_t original_wp_bearing; static int32_t home_bearing; // distance between plane and home in cm static int32_t home_distance; -// distance between plane and next waypoint in cm. is not static because AP_Camera uses it -uint32_t wp_distance; +// distance between plane and next waypoint in cm. +static uint32_t wp_distance; // navigation mode - options include NAV_NONE, NAV_LOITER, NAV_CIRCLE, NAV_WP static uint8_t nav_mode; // Register containing the index of the current navigation command in the mission script