View Single Post
Posts: 22 | Thanked: 19 times | Joined on Nov 2009
#38
Originally Posted by zimon View Post
How to change that Python script to get altitude also?
(Sowwy for being lazy and not look it up from specs myself.)
Code:
$ diff oldgps.py gps.py
14c14
<             print "lat = %f, long = %f" % device.fix[4:6]
---
>             print "lat = %f, long = %f, alt = %f" % (device.fix[4:6] + (device.fix[7],))
Hopefully that will help