gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/3] Add reporting of if DGPS used


From: Sanjeev
Subject: [gpsd-dev] [PATCH 2/3] Add reporting of if DGPS used
Date: Mon, 5 Dec 2016 21:26:47 +0800

---
 gpsd.php.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gpsd.php.in b/gpsd.php.in
index e16e957..854c4c1 100644
--- a/gpsd.php.in
+++ b/gpsd.php.in
@@ -462,7 +462,10 @@ EOF;
                $sats = $sky['satellites'];
 
                $fixtype = array('Unknown' => 0, 'No Fix' => 1,'2D Fix' => 2, 
'3D Fix' => 3);
-                $type = array_search($fix['mode'],$fixtype);
+               $type = array_search($fix['mode'],$fixtype);
+
+               $statustype = array('No Fix' => 0, 'Without DGPS' => 1,'With 
DGPS' => 2);
+               $status = array_search($fix['status'],$statustype);
 
                $nsv = count($sats);
                 $ts = $fix['time'];
-- 
2.10.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]