|
|
|
@ -27,9 +27,9 @@ try:
|
|
|
|
while (session.read() == 0) and ((time.perf_counter() - start) < 2) and (mode < 3):
|
|
|
|
while (session.read() == 0) and ((time.perf_counter() - start) < 2) and (mode < 3):
|
|
|
|
# print(gps.MODE_SET)
|
|
|
|
# print(gps.MODE_SET)
|
|
|
|
# print(session.valid)
|
|
|
|
# print(session.valid)
|
|
|
|
if not (gps.MODE_SET & session.valid):
|
|
|
|
if (session.valid):
|
|
|
|
# not useful, probably not a TPV message
|
|
|
|
# not useful, probably not a TPV message
|
|
|
|
continue
|
|
|
|
# continue
|
|
|
|
|
|
|
|
|
|
|
|
# print('Mode: %s(%d) Time: ' %
|
|
|
|
# print('Mode: %s(%d) Time: ' %
|
|
|
|
# (("Invalid", "NO_FIX", "2D", "3D")[session.fix.mode],
|
|
|
|
# (("Invalid", "NO_FIX", "2D", "3D")[session.fix.mode],
|
|
|
|
|