MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _parse_sky

Method _parse_sky

gps_manager.py:546–558  ·  view source on GitHub ↗

Parse a gpsd SKY object for satellite count and HDOP.

(self, obj)

Source from the content-addressed store, hash-verified

544 else:
545 source = 'serial'
546 return {
547 'connected': self.connected,
548 'source': source,
549 'port': self.port,
550 'has_fix': self.has_fix(),
551 'fix_quality': self.fix_quality,
552 'satellites': self.satellites,
553 'satellites_in_view': self.satellites_in_view,
554 'snr_max': self.snr_max,
555 'hdop': self.hdop,
556 # TTFF once fixed; until then, how long we have been searching.
557 'ttff_seconds': self.ttff_seconds,
558 'searching_seconds': (round(time.time() - self.start_time, 1)
559 if (self.start_time and not self.first_fix_time)
560 else None),
561 'latitude': self.latitude,

Callers 1

_read_loop_gpsdMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected