From ba1d0b4c12a10828207c2b046ea049ffa2e6ac77 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 13 Mar 2008 16:26:51 +0200 Subject: [PATCH] Tiny gps simulator fix, don't be so eager to change direction. --- src/gps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5