首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 利用全球定位系统同步时钟

利用全球定位系统同步时钟

资 源 简 介

This is a simple windows clock synchronization using GPS module. Also it is possible to retrieve the GPS coordinate. ## Dependency ## 1. pyserial, 1. win32api ## Parameters ## GPSModule(port, baudrate, sync_time, sync_nr) port - the serial port number, where the GPS module is attached baudrate sync_time - If you would like to synchronize the Windows system clock automatically than this flag must be one, otherwise it has to be 0 sync_nr - How many time do you wan to update the system clock, it"s going together with sync_time parameter. If it"s 0 than the clock will be synchronize until the stop() function will be called. Public variables `self.port` `self.baudrate``self.sync_nr``self.sync_time``self.time``self.unixtimestamp``self.timezone``self.lat``self.long``self.longdir``self.latdir``self.alt``self.glong``self.glat``self.is_clock_sync` Example usag

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP