1 Star 0 Fork 0

杨雪元/raspberrypi_cookbook_ed2

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
gps_test.py 317 Bytes
Copy Edit Raw Blame History
Simon Monk authored 2016-02-05 12:16 . added lots of code
from gps import *
session = gps()
session.stream(WATCH_ENABLE|WATCH_NEWSTYLE)
while True:
report = session.next()
if report.keys()[0] == 'epx' :
lat = float(report['lat'])
lon = float(report['lon'])
print("lat=%f\tlon=%f\ttime=%s" % (lat, lon, report['time']))
time.sleep(0.5)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yang_xueyuan/raspberrypi_cookbook_ed2.git
git@gitee.com:yang_xueyuan/raspberrypi_cookbook_ed2.git
yang_xueyuan
raspberrypi_cookbook_ed2
raspberrypi_cookbook_ed2
master

Search