GUI cleanups
This commit is contained in:
@ -11,7 +11,6 @@ from time import strftime, time
|
||||
from gps import *
|
||||
import gpxpy
|
||||
|
||||
|
||||
from PySide2.QtGui import *
|
||||
from PySide2.QtWidgets import QApplication, QMainWindow, QGraphicsEllipseItem, QFileDialog, QGraphicsScene, QGraphicsProxyWidget
|
||||
from PySide2.QtCore import QObject, Slot, Signal, QThread, QDir, QRect
|
||||
@ -111,7 +110,7 @@ class QtGPSWindow(MainWindow):
|
||||
self.orange = QColor(255,80,0)
|
||||
self.yellow = QColor(255,211,0)
|
||||
self.green = QColor(0,255,0)
|
||||
self.green = QColor(0,0,255)
|
||||
self.blue = QColor(0,0,255)
|
||||
|
||||
self.scene = QtWidgets.QGraphicsScene()
|
||||
self.viewSatellites.setScene(self.scene)
|
||||
@ -177,22 +176,22 @@ class QtGPSWindow(MainWindow):
|
||||
if azim >= 360 or elev < -10 or elev > 90:
|
||||
continue;
|
||||
|
||||
cname = 'black'
|
||||
cname = '#000000'
|
||||
color = self.black
|
||||
if snr < 12:
|
||||
cname = 'gray'
|
||||
cname = '#808080'
|
||||
color = self.gray
|
||||
elif snr < 30:
|
||||
cname = 'red'
|
||||
cname = '#ff0000'
|
||||
color = self.red
|
||||
elif snr < 36:
|
||||
cname = 'yellow'
|
||||
cname = '#ffd300'
|
||||
color = self.yellow
|
||||
elif snr < 42:
|
||||
color = 'green'
|
||||
color = '#00ff00'
|
||||
color = self.green
|
||||
else:
|
||||
color = 'blue'
|
||||
color = '#0000ff'
|
||||
color = self.blue
|
||||
|
||||
txt = "%4u %4u %4u %3u %1u" % (prn, azim, elev, snr, used)
|
||||
@ -217,6 +216,7 @@ class QtGPSWindow(MainWindow):
|
||||
polar = figure.add_subplot(111, projection='polar')
|
||||
polar.scatter(theta, radius, c=colors, s=area, cmap=None, alpha=0.75)
|
||||
polar.set_rorigin(90.0)
|
||||
polar.set_xticklabels([])
|
||||
polar.set_yticklabels([])
|
||||
for i, prn in enumerate(prns):
|
||||
polar.annotate(str(prn), (theta[i], radius[i]))
|
||||
|
||||
Reference in New Issue
Block a user