Skip to content

Commit

Permalink
bumped description
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjorn committed Oct 23, 2018
1 parent 17592f0 commit 6686807
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env python

"""
TODO: Describe the main entrypoint here!
A standalone Jammer Monitor that initializes the pyUblox + EVK8 device
to listen for GPS signals. The EVK8 device will in addition also report
a 'jamming index' (0-255) which indicate the noise level detected.
There are many reason why one might experience noise - one very interesting
reason is "gps jamming" or malfunctioning GPS devices.
@author asbjorn
"""
Expand Down
11 changes: 10 additions & 1 deletion ublox_mon/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,18 @@ def run(self, notify_callback=None):
# log.debug("MSG-NAV-TIMEGPS: {}".format(msg.fields))
continue

gps_utc = None
if msg.msg_type() == (ublox.CLASS_NAV, ublox.MSG_NAV_TIMEUTC):
# log.debug("MSG-NAV-TIMEUTC: {}".format(msg.fields))
continue
# continue
# gps_utc = msg.fields.get("")
year = msg.fields.get("year")
month = msg.fields.get("month")
day = msg.fields.get("day")
hour = msg.fields.get("hour")
minutes = msg.fields.get("min")
seconds = msg.fields.get("sec")
gps_utc = datetime.datetime(year, month, day, hour, minutes, seconds)

if msg.msg_type() == (ublox.CLASS_NAV, ublox.MSG_NAV_CLOCK):
# log.debug("MSG-NAV-TIMEUTC: {}".format(msg.fields))
Expand Down

0 comments on commit 6686807

Please sign in to comment.