Progetto Tuzzi

Dependencies:   MTK3339 TextLCD mbed tsi_sensor

Fork of app_gps by EmbeddedArtists AB

Files at this revision

API Documentation at this revision

Comitter:
den90
Date:
Wed Jul 15 15:06:36 2015 +0000
Parent:
11:d9fb0fa0cbcd
Commit message:
FINAL VERSION!!!

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d9fb0fa0cbcd -r 45cdb2b65f79 main.cpp
--- a/main.cpp	Tue Jul 14 20:21:06 2015 +0000
+++ b/main.cpp	Wed Jul 15 15:06:36 2015 +0000
@@ -24,7 +24,7 @@
 const int SATS  = 5;           // Satelliti da fixare prima di acquisire la posizione
 
 double initPos[2] = {.0, .0};  // Latitudine, Longitudine
-double thrs       = 3.0;       // Soglia di allarme in metri
+double thrs       = 5.0;       // Soglia di allarme di default in metri
 bool   set        = false;     // Posizione iniziale individuata
 
 static void dataAvailable()
@@ -135,7 +135,7 @@
                 stdevLon = stdev(coords[LON], N);
 
                 lcd.printf("ACCURACY=%0.2fm\nTIME=%ds GPS=%d", distThomas(0, 0, 3*stdevLat, 3*stdevLon), i-2*N, gps.gga.satellites);
-                if (distThomas(0, 0, 3*stdevLat, 3*stdevLon) < 2.5) {
+                if (distThomas(0, 0, 3*stdevLat, 3*stdevLon) < 2.0) {
                     initPos[LAT] = meanLat;
                     initPos[LON] = meanLon;
                     set = true;