Added counter to gps_tool
This commit is contained in:
@ -101,6 +101,7 @@ class QtGPSWindow(MainWindow):
|
||||
|
||||
self.log_enabled = 0
|
||||
self.dirname = "."
|
||||
self.num_count = 0
|
||||
self.num_points = 0
|
||||
|
||||
self.my_thread = DataThread()
|
||||
@ -150,6 +151,8 @@ class QtGPSWindow(MainWindow):
|
||||
point.time = datetime.now()
|
||||
self.gpx_segment.points.append(point)
|
||||
self.num_points += 1
|
||||
self.num_count += 1
|
||||
self.txtCount.setText(str(self.num_count))
|
||||
|
||||
elif report['class'] == 'SKY':
|
||||
self.txtHDOP.setText(str(getattr(report, 'hdop', 0.0)))
|
||||
|
||||
Reference in New Issue
Block a user