]> err.no Git - mapper/commitdiff
Tiny gps simulator fix, don't be so eager to change direction.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 13 Mar 2008 14:26:51 +0000 (16:26 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 13 Mar 2008 14:26:51 +0000 (16:26 +0200)
src/gps.c

index 80bfd38eee72326c108a006a012bdd809ef96057..6e10184267e8a64d89741bf66388f2171acef8b5 100644 (file)
--- 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;