Read current & coulomb counter

This commit is contained in:
2023-01-28 20:43:15 +01:00
parent 23f96c214b
commit 5bf6b286b6
4 changed files with 70 additions and 18 deletions

View File

@ -13,6 +13,8 @@ ApplicationWindow {
property string profile: "None"
property real profileTime: 0
property real current: 0
property real currentActual: 0
property real currentIntegrated: 0
property string time: "00:00 / 00:00"
property real voltage_min: 0
property real voltage_max: 0
@ -143,7 +145,7 @@ ApplicationWindow {
}
GridLayout {
Text {
text: "Current [A]:"
text: "Current (target) [A]:"
Layout.row: 0
Layout.column: 0
}
@ -153,38 +155,58 @@ ApplicationWindow {
Layout.column: 1
}
Text {
text: "Time [min]:"
text: "Current (actual) [A]:"
Layout.row: 1
Layout.column: 0
}
Text {
text: currentActual.toFixed(1)
Layout.row: 1
Layout.column: 1
}
Text {
text: "Time [min]:"
Layout.row: 2
Layout.column: 0
}
Text {
text: time
Layout.row: 1
Layout.row: 2
Layout.column: 1
}
Text {
text: "Voltage [V]:"
Layout.row: 2
Layout.row: 3
Layout.column: 0
}
Text {
text: "[" + voltage_min.toFixed(2) + ", " + voltage_max.toFixed(2) + "]"
Layout.row: 2
Layout.row: 3
Layout.column: 1
}
Text {
text: "Temperature [°C]:"
Layout.row: 3
Layout.row: 4
Layout.column: 0
}
Text {
text: "[" + temp_min.toFixed(1) + ", " + temp_max.toFixed(1) + "]"
Layout.row: 3
Layout.row: 4
Layout.column: 1
}
Text {
text: "Coulomb counter [Ah]:"
Layout.row: 5
Layout.column: 0
}
Text {
text: currentIntegrated.toFixed(1)
Layout.row: 5
Layout.column: 1
}
Text {
text: "BMS Error:"
Layout.row: 4
Layout.row: 6
Layout.column: 0
visible: bmsErrorVisible
color: "red"
@ -192,7 +214,7 @@ ApplicationWindow {
}
Text {
text: bmsError
Layout.row: 4
Layout.row: 6
Layout.column: 1
visible: bmsErrorVisible
color: "red"