diff options
author | Sanjeev <ghane0@gmail.com> | 2016-12-16 00:36:49 +0800 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2016-12-18 22:27:55 -0500 |
commit | 1564c089aac91f11104207f0f14125ce96e86037 (patch) | |
tree | 1ea3fa48062b5777c886cf271dfa2e11973c4f48 /gpsd.php.in | |
parent | 116c0b548aa8ce5430c9f19a40534b1056268f5b (diff) | |
download | gpsd-1564c089aac91f11104207f0f14125ce96e86037.tar.gz |
Improve wording while reporting Fix Type
Diffstat (limited to 'gpsd.php.in')
-rw-r--r-- | gpsd.php.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gpsd.php.in b/gpsd.php.in index a6f20459..43f84de1 100644 --- a/gpsd.php.in +++ b/gpsd.php.in @@ -461,6 +461,9 @@ EOF; $sky = $GPS['sky'][0]; $sats = $sky['satellites']; + $fixtype = array('Unknown' => 0, 'No Fix' => 1,'2D Fix' => 2, '3D Fix' => 3); + $type = array_search($fix['mode'],$fixtype); + $nsv = count($sats); $ts = $fix['time']; $sat = ''; @@ -478,7 +481,7 @@ EOF; <tr><td>Latitude</td><td>{$fix['lat']}</td></tr> <tr><td>Longitude</td><td>{$fix['lon']}</td></tr> <tr><td>Altitude</td><td>{$fix['alt']}</td></tr> - <tr><td>Fix Type</td><td>{$fix['mode']}</td></tr> + <tr><td>Fix Type</td><td>{$type}</td></tr> <tr><td>Satellites</td><td>{$nsv}</td></tr> <tr><td>HDOP</td><td>{$sky['hdop']}</td></tr> <tr><td>VDOP</td><td>{$sky['vdop']}</td></tr> |