Arg... I really need a simple working example of C++ from a python module with a reasonable and simple setup.py. Why does that seem too much to ask?
http://paste.lisp.org/display/98607
Updated 2010-May-01:
Asked and answered here: Frustration with C++ and Python. May have also stumbled onto a gcc 4.4.2 bug that added to my confusion.
Friday, April 30, 2010
Sunday, April 4, 2010
NMEA NTP status sentence ZNT
Comments? The original post is here: A proprietary NMEA sentence for NTP status
nmea_znt.py
nmea_znt.py
./nmea_znt.py -h
Usage: nmea_znt.py
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-H HOSTNAME, --hostname=HOSTNAME
Host IPv4 address [default: 127.0.0.1]
-v, --verbose
./nmea_znt.py
$NTZNT,1270398503.49,127.0.0.1,17.151.16.23,3,1270398342.13,0.000074,-20,0.268707,0.034073*44
./nmea_znt.py -v
$NTZNT,1270398471.54,127.0.0.1,17.151.16.23,3,1270398342.13,0.000071,-20,0.268707,0.033585*42
ZNT - NMEA Proprietary NTP status report
talker: NT
timestamp: 1270398471.54
host: 127.0.0.1
ref_clock: 17.151.16.23
stratum: 3
last_update: 1270398342.13
offset: 7.1e-05
precision: -20.0
root_delay: 0.268707
root_dispersion: 0.033585
{'root_delay': 0.26870699999999997, 'timestamp': 1270398471.54, 'stratum': 3,
'precision': -20.0, 'nmea_type': 'ZNT', 'last_update': 1270398342.1300001,
'ref_clock': '17.151.16.23', 'host': '127.0.0.1', 'talker': 'NT', 'root_dispersion':
0.033584999999999997, 'offset': 7.1000000000000005e-05, 'checksum': '42'}
Subscribe to:
Posts (Atom)