[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 3/3] Updated the sample, to proto version 3.12
From: |
Sanjeev |
Subject: |
[gpsd-dev] [PATCH 3/3] Updated the sample, to proto version 3.12 |
Date: |
Fri, 16 Dec 2016 00:36:51 +0800 |
---
gpsd.php.in | 63 ++++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 44 insertions(+), 19 deletions(-)
diff --git a/gpsd.php.in b/gpsd.php.in
index 854c4c1..3e2dd22 100644
--- a/gpsd.php.in
+++ b/gpsd.php.in
@@ -48,26 +48,51 @@ if (!file_exists("gpsd_config.inc"))
require_once("gpsd_config.inc");
# sample data
+# Updated to Major 3, Minor 12
$resp = <<<EOF
-{"class":"POLL","time":"2010-04-05T21:27:54.84Z","active":1,
- "tpv":[{"class":"TPV","tag":"MID41","device":"/dev/ttyUSB0",
- "time":1270517264.240,"ept":0.005,"lat":40.035093060,
- "lon":-75.519748733,"alt":31.1,"track":99.4319,
- "speed":0.123,"mode":3}],
- "sky":[{"class":"SKY","tag":"MID41","device":"/dev/ttyUSB0",
- "time":"2010-04-05T21:27:44.84Z","hdop":9.20,"vdop":12.1,
- "satellites":[{"PRN":16,"el":55,"az":42,"ss":36,"used":true},
- {"PRN":19,"el":25,"az":177,"ss":0,"used":false},
- {"PRN":7,"el":13,"az":295,"ss":0,"used":false},
- {"PRN":6,"el":56,"az":135,"ss":32,"used":true},
- {"PRN":13,"el":47,"az":304,"ss":0,"used":false},
- {"PRN":23,"el":66,"az":259,"ss":40,"used":true},
- {"PRN":20,"el":7,"az":226,"ss":0,"used":false},
- {"PRN":3,"el":52,"az":163,"ss":32,"used":true},
- {"PRN":31,"el":16,"az":102,"ss":0,"used":false}
- ]
- }
- ]
+{"class":"POLL","time":"2016-12-05T12:55:36.011Z","active":1,
+ "tpv":[{
+ "class":"TPV","device":"/dev/ttyS0",
+ "status":2,"mode":3,"time":"2016-12-05T12:55:35.000Z",
+ "ept":0.005,
+ "lat":1.310293333,
+ "lon":103.752235000,
+ "alt":60.400,
+ "epx":5.181,
+ "epy":2.392,
+ "epv":5.003,
+ "track":286.4800,
+ "speed":0.000,
+ "climb":0.000,
+ "eps":10.36,
+ "epc":10.01
+ }],
+ "gst":[{
+ "class":"GST","device":"/dev/ttyS0",
+ "time":"1970-01-01T00:00:00.000Z",
+ "rms":0.000,"major":0.000,"minor":0.000,"orient":0.000,
+ "lat":0.000,"lon":0.000,"alt":0.000
+ }],
+ "sky":[{
+ "class":"SKY","device":"/dev/ttyS0",
+
"xdop":1.38,"ydop":0.64,"vdop":0.87,"tdop":1.70,"hdop":0.95,"gdop":3.26,"pdop":1.28,
+ "satellites":[{
+ "PRN":16,"el":69,"az":307,"ss":37,"used":true
+ },
+ {"PRN":128,"el":65,"az":266,"ss":44,"used":false},
+ {"PRN":26,"el":50,"az":3,"ss":15,"used":false},
+ {"PRN":14,"el":49,"az":59,"ss":25,"used":true},
+ {"PRN":27,"el":43,"az":170,"ss":20,"used":true},
+ {"PRN":32,"el":40,"az":100,"ss":28,"used":true},
+ {"PRN":22,"el":37,"az":294,"ss":23,"used":true},
+ {"PRN":3,"el":24,"az":307,"ss":23,"used":true},
+ {"PRN":10,"el":20,"az":157,"ss":16,"used":true},
+ {"PRN":31,"el":17,"az":26,"ss":16,"used":true},
+ {"PRN":8,"el":14,"az":203,"ss":0,"used":false},
+ {"PRN":1,"el":5,"az":248,"ss":0,"used":false},
+ {"PRN":11,"el":4,"az":229,"ss":15,"used":false}
+ ]}
+ ]
}
EOF;
--
2.10.2