diff options
| author | git@eclectronics.org <git@eclectronics.org@eclectronics.org> | 2012-05-21 09:47:17 +0100 |
|---|---|---|
| committer | git@eclectronics.org <git@eclectronics.org@eclectronics.org> | 2012-05-21 09:47:17 +0100 |
| commit | 271e8555f5e225be5870998218e54b3c026b7f57 (patch) | |
| tree | 83ec2362b2b4e08280eb9a2ad1d80ea19cc99690 /wim.py | |
| parent | be0a3f4b3f536e9cad405d7307324914f3284740 (diff) | |
gps testing
Diffstat (limited to 'wim.py')
| -rwxr-xr-x | wim.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -101,15 +101,16 @@ while True: if not gpsfix: if gpsp.fix>1: gpsfix=True - outsock.sendto( "gpsstatus 1\n", (PD_IP, PD_PORT) ) + outsock.sendto( "gps status 1\n", (PD_IP, PD_PORT) ) if gpsfix: if gpsp.fix<2: gpsfix=False - outsock.sendto( "gpsstatus 0\n", (PD_IP, PD_PORT) ) + outsock.sendto( "gps status 0\n", (PD_IP, PD_PORT) ) check=gpsp.check() if check!=False: if debug==True: print "wim: received from gps",check[0],check[1] + outsock.sendto("gps data"+str(check[0])+" "+str(check[1])+"\n",(PD_IP, PD_PORT) ) pos=latLng(check[0],check[1]) posChanged=True if posChanged: |
