22 int SERIAL_BUFF_LENGTH = 256;
23 QString activeStateStyle =
"QLabel { background-color : black; color : #00FF00; border: 1px solid gray; border-radius: 4px; font: 700 9pt; }";
29 void updateSerialMonitor(
const QString data);
30 void readData(
const QString data);
33 void on_btnChooseFile_clicked();
34 void on_connectSerial_clicked();
35 void on_writeSerialButton_clicked();
36 void on_closeSerialButton_clicked();
37 void on_btnLink_clicked();
38 void on_btnCheckSystems_clicked();
39 void on_btnConfirmCheck_clicked();
42 void updateFlightStateUI(QString);
43 void updateSystemDiagnosticsUI(QString);
44 void updateSubSystemsPeriodic();
47 void handleEndOfTransmission();
50 void handleSubsystemsCheck();
51 void handleStateReceive();
54 void plotAltitude(QVector<double>*,
int);
56 void systemsCheck(QString);
57 void resetStatesLabels();
59 void on_btnMainRun_clicked();
62 void endOfTransmissionSignal();
63 void subsystemsInitCheckSignal();
64 void preflightRCVDSignal();
65 void poweredFlightRCVDSignal();
66 void apogeeRCVDSignal();
70 static constexpr uint8_t numBaudRates = 9;
71 uint64_t baudRates[9];
72 static constexpr uint64_t numTimeSteps = 8;
74 bool isConnected =
false;
76 QTimer* mSerialScanTimer;
78 void updateSerialPorts();
80 QTimer* updateSubSystemsTimer;
84 static constexpr int num_sub_systems = 8;
85 int sys_diag[num_sub_systems] = {1,1,1,1,0,1,0};
MainWindow(QWidget *parent=nullptr)
MainWindow::MainWindow.
Definition mainwindow.cpp:33
~MainWindow()
MainWindow::~MainWindow Destructor.
Definition mainwindow.cpp:733