From 179ed918aed1c9f190ae6846ea4bcccccbeab18f Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Mon, 21 Nov 2022 16:34:17 -0600 Subject: Added Pre-Charge functionality and made thing prettier. --- mainwindow.h | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'mainwindow.h') diff --git a/mainwindow.h b/mainwindow.h index f7f0b00..f8ce84e 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -5,8 +5,11 @@ #include #include #include +#include #include "battery.h" #include "wire.h" +#include "generator.h" +#include "precharge.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } @@ -19,6 +22,14 @@ class MainWindow : public QMainWindow public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); +private: + Battery m_battery; + Wire m_wire; + Generator m_generator; + Precharge m_precharge; + + Ui::MainWindow *ui; + void initializeGraphics(void); private slots: void on_spinBoxPeakSystemPower_valueChanged(double arg1); @@ -35,11 +46,17 @@ private slots: void on_lineEditVoltageRange_textChanged(const QString &arg1); -private: - Battery m_battery; - Wire m_wire; + void on_doubleSpinBoxMinimumAllowableSOC_valueChanged(double arg1); - Ui::MainWindow *ui; - void initializeGraphics(void); + void on_doubleSpinBoxGeneratorRPM_valueChanged(double arg1); + + void on_doubleSpinBoxPreChargeTime_valueChanged(double arg1); + + void on_doubleSpinBoxSystemCapacitance_valueChanged(double arg1); + + void on_doubleSpinBoxPreChargePercentageDesired_valueChanged(double arg1); + + void on_doubleSpinBoxChosenResistance_valueChanged(double arg1); + void on_lineEditMaximumPrechargeResistance_textChanged(const QString &arg1); }; #endif // MAINWINDOW_H -- cgit v1.2.3