From 06554338d147a8ecb333ff43b4c2e1e9d99c64f6 Mon Sep 17 00:00:00 2001 From: dongie Date: Sun, 2 Mar 2014 23:05:44 +0900 Subject: [PATCH] initializing static var in gps --- src/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gps.c b/src/gps.c index 9cc5c4870..8a0b6d1a7 100644 --- a/src/gps.c +++ b/src/gps.c @@ -343,7 +343,7 @@ static void reset_PID(PID *pid) static float dTnav; // Delta Time in milliseconds for navigation computations, updated with every good GPS read static int16_t actual_speed[2] = { 0, 0 }; -static float GPS_scaleLonDown; // this is used to offset the shrinking longitude as we go towards the poles +static float GPS_scaleLonDown = 1.0f; // this is used to offset the shrinking longitude as we go towards the poles // The difference between the desired rate of travel and the actual rate of travel // updated after GPS read - 5-10hz