3 from logInspector
import LogInspectorWindow
6 from PyQt5
import QtCore
7 from PyQt5.QtWidgets
import QWidget, QDialog, QApplication, QPushButton, QVBoxLayout, QTreeView, QFileSystemModel,\
8 QHBoxLayout, QGridLayout, QMainWindow, QSizePolicy, QSpacerItem, QFileDialog, QMessageBox, QLabel, QRadioButton,\
9 QAbstractItemView, QMenu, QTableWidget,QTableWidgetItem, QSpinBox, QCheckBox
10 from PyQt5.QtGui
import QMovie, QPicture, QIcon, QDropEvent
11 from PyQt5.Qt
import QApplication, QClipboard
18 super(ChooseDevsDialog, self).
__init__(parent)
19 self.setWindowTitle(
"Choose Devices")
34 for i
in range(parent.log.numDev):
35 checkbox = QCheckBox()
36 checkbox.setText(str(parent.log.serials[i]))
37 checkbox.setChecked(i
in parent.plotter.active_devs)
53 if checkbox.isChecked():
54 active_serials.append(self.
parent.log.serials[i])
55 self.
parent.plotter.setActiveSerials(active_serials)
63 checkbox.setChecked(
True)
68 checkbox.setChecked(
False)
74 super(logInspectorInternal, self).
__init__(config, parent)
82 self.
addButton(
'Debug Double',
lambda: self.
plot(
'debuglfArr'))
86 self.
addButton(
'Phase Residuals',
lambda: self.
plot(
'rtkResiduals', (
'phase', self.
page)))
87 self.
addButton(
'Code Residuals',
lambda: self.
plot(
'rtkResiduals', (
'code', self.
page)))
90 self.
addButton(
'RTK Dbg 2 Sat',
lambda: self.
plot(
'rtkDebug2Sat'))
91 self.
addButton(
'RTK Dbg 2 STD',
lambda: self.
plot(
'rtkDebug2Std'))
92 self.
addButton(
'RTK Dbg 2 Lock',
lambda: self.
plot(
'rtkDebug2Lock'))
93 self.
addButton(
'RTK Pos Misc',
lambda: self.
plot(
'rtkPosMisc'))
94 self.
addButton(
'RTK Cmp Misc',
lambda: self.
plot(
'rtkCmpMisc'))
95 self.
addButton(
'Wheel Encoder',
lambda: self.
plot(
'wheelEncoder'))
96 self.
addButton(
'GPS Raw Time',
lambda: self.
plot(
'gpsRawTime'))
121 except Exception
as e:
125 if self.
log is not None:
126 self.
log.calculateRMS()
127 self.
log.printRMSReport()
128 self.
log.openRMSReport()
138 if __name__ ==
'__main__':
139 app = QApplication(sys.argv)
140 MainWindow = QMainWindow()
142 configFilePath = os.path.join(os.path.expanduser(
"~"),
"Documents",
"Inertial_Sense",
"config.yaml")
149 if len(sys.argv) > 1:
150 directory = sys.argv[1]
def createBottomToolbar(self)
GeneratorWrapper< T > range(T const &start, T const &end, T const &step)
def formatButtonColumn(self)
def __init__(self, plotter, parent=None)
def changePage(self, val)
def addButton(self, name, function, multithreaded=True, layout=None)
def plot(self, func, args=None)
def createButtonColumn(self)
def __init__(self, config, parent=None)