[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH 1/3] Improve wording while reporting Fix Type
From: |
Fred Wright |
Subject: |
Re: [gpsd-dev] [PATCH 1/3] Improve wording while reporting Fix Type |
Date: |
Sat, 17 Dec 2016 16:44:37 -0800 (PST) |
On Fri, 16 Dec 2016, Sanjeev wrote:
> ---
> gpsd.php.in | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/gpsd.php.in b/gpsd.php.in
> index a6f2045..e16e957 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>
***TYPO***: ^
> <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>
> --
> 2.10.2
>
>
>
I have a corrected version of this patchset in my GitHub repo:
https://github.com/fhgwright/gpsd/compare/master...sanjeev
Fred Wright