From: Kaj-Michael Lang Date: Thu, 13 Mar 2008 14:26:51 +0000 (+0200) Subject: Tiny gps simulator fix, don't be so eager to change direction. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba1d0b4c12a10828207c2b046ea049ffa2e6ac77;p=mapper Tiny gps simulator fix, don't be so eager to change direction. --- diff --git a/src/gps.c b/src/gps.c index 80bfd38..6e10184 100644 --- a/src/gps.c +++ b/src/gps.c @@ -412,9 +412,9 @@ gdouble plat, plon; gfloat h; g_assert(gps); -if (g_random_double()<0.5) { - slat=g_random_double_range(-0.0008, 0.0008); - slon=g_random_double_range(-0.0008, 0.0008); +if (g_random_double()<0.2) { + slat=g_random_double_range(-0.0009, 0.0009); + slon=g_random_double_range(-0.0009, 0.0009); } plat=gps->data.lat; plon=gps->data.lon;