Added counter to gps_tool

This commit is contained in:
2021-11-19 08:49:59 -05:00
parent 5d1e98eee6
commit 54eeb99d42
4 changed files with 51 additions and 11 deletions

View File

@ -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)))