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.ui | 687 +++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 579 insertions(+), 108 deletions(-) (limited to 'mainwindow.ui') diff --git a/mainwindow.ui b/mainwindow.ui index 5f0a180..4c47a92 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,16 +6,28 @@ 0 0 - 800 - 600 + 1100 + 900 - + + + 0 + 0 + + + - 800 + 0 600 + + + 1100 + 900 + + Electric Vehicle Parameter Calculator @@ -41,17 +53,41 @@ - 800 - 545 + 1100 + 845 + + + 0 + 0 + + + + + 0 + 600 + + 0 + + + 0 + 0 + + + + + 0 + 600 + + -1 @@ -62,7 +98,7 @@ Data - + -1 @@ -96,14 +132,25 @@ - - + + + + Voltage Range: + + + + + 0 0 + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + Qt::AlignCenter @@ -112,41 +159,42 @@ - - - - Qt::Vertical + + + + color: rgba(0, 0, 0, 120); - - - 20 - 40 - + + Average PreCharge Power: - + - + Fuel Quantity: - - + + - Wire Gauge: + Wire Weight: - - + + 0 0 + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + Qt::AlignCenter @@ -162,28 +210,158 @@ - - + + 0 0 + + Qt::AlignCenter + true - - + + + + color: rgba(0, 0, 0, 120); + - Wire Weight: + Generator KV: - - + + + + + 0 + 0 + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + Qt::AlignCenter + + + true + + + + + + + + 0 + 0 + + + + Qt::AlignCenter + + + true + + + + + + + + 0 + 0 + + + + 0 - 0 + + + Qt::AlignCenter + + + true + + + + + + + color: rgba(0, 0, 0, 120); + + + Maximum Resistance: + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + Qt::AlignCenter + + + true + + + + + + + + 0 + 0 + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + -- + + + Qt::AlignCenter + + + true + + + + + 0 @@ -198,6 +376,16 @@ + + + + color: rgba(0, 0, 0, 120); + + + Actual Pre-Charge Time: + + + @@ -214,15 +402,25 @@ - - + + - Voltage Range: + Wire Gauge: - - + + + + color: rgba(0, 0, 0, 120); + + + Peak Inrush Current: + + + + + 0 @@ -237,10 +435,123 @@ + + + + font: 10pt; +color: rgb(0, 0, 0); + + + Pre-Charge Circuit + + + Qt::AlignCenter + + + + + + + + + + + 0 + 0 + + + + Mechanical Inputs + + + + + + Run Time: + + + + + + + QFrame::NoFrame + + + <html><head/><body><p>Engine/Power Source:</p></body></html> + + + + + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + false + + + 2 + + + 96.000000000000000 + + + 8.000000000000000 + + + + + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + 1 + + + 1000.000000000000000 + + + 100.000000000000000 + + + + + + + + + + Vehicle Weight: + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 40 + + + + - + @@ -270,10 +581,45 @@ 0 - - + + + + + 0 + 0 + + + + font: 10pt; +color: rgb(0, 0, 0); + - System Voltage: + Pre-Charge Circuit + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + 1 + + + 1000.000000000000000 + + + 0.000000000000000 @@ -299,29 +645,18 @@ - - - - Peak System Power: + + + + color: rgba(0, 0, 0, 120); - - - - - Wire Material: + System Capacitance (uF): - - - - false - - - - - + + Qt::AlignCenter @@ -339,11 +674,12 @@ - - - - - + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + Qt::AlignCenter @@ -354,45 +690,47 @@ 1 - 1000.000000000000000 + 100.000000000000000 - - 0.000000000000000 + + + + + + Nominal Voltage: - - + + - Estimated Wire Length: + Peak System Power: - - + + + + color: rgba(0, 0, 0, 120); + - Battery Chemistry: + Percentage Desired: - - - - - - - Mechanical Inputs - - - - + + - Vehicle Weight: + Battery Chemistry: - - + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + Qt::AlignCenter @@ -400,57 +738,190 @@ QAbstractSpinBox::NoButtons - 1 + 0 - 1000.000000000000000 + 100000.000000000000000 + + + + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + 0.010000000000000 + + + 99.989999999999995 - 100.000000000000000 + 0.010000000000000 - - + + + + true + + + Qt::NoContextMenu + + + color: rgba(0, 0, 0, 120); + - Run Time: + Desired Pre-Charge Time: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - + + + + Estimated Wire Length: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Wire Material: + + + + + + + false + + + + + + + + 0 + 0 + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + Qt::AlignCenter QAbstractSpinBox::NoButtons - - false + + - 2 + 3 - 96.000000000000000 + 10000.000000000000000 - - 8.000000000000000 + + + + + + color: rgba(0, 0, 0, 120); + + + Generator RPM: - - - - QFrame::NoFrame + + + + + 0 + 0 + + + + color: rgba(0, 0, 0, 120); - <html><head/><body><p>Engine/Power Source:</p></body></html> + Minimum Allowable SOC: - - + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + 60.000000000000000 + + + + + + + color: rgba(0, 0, 0, 120); + + + Chosen Resistance: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + background-color: rgba(255, 255, 255,80); +color: rgba(0, 0, 0,80); + + + Qt::AlignCenter + + + QAbstractSpinBox::NoButtons + + + 10000.000000000000000 + + -- cgit v1.2.3