Check temperature & voltage

This commit is contained in:
2023-01-26 13:58:18 +01:00
parent 7bcafa2c4d
commit a91f9d70db
5 changed files with 101 additions and 7 deletions

View File

@ -18,12 +18,13 @@ ApplicationWindow {
property real voltage_max: 0
property real temp_min: 0
property real temp_max: 0
property string bmsError: ""
property bool bmsErrorVisible: false
Connections {
target: profile_handler
function onCurrentChanged(new_current) {
console.log("currentChanged");
current = new_current;
}
@ -45,6 +46,11 @@ ApplicationWindow {
currentTimeSeries.append(profileTime, 100)
}
onBmsErrorChanged: {
console.log(bmsError);
bmsErrorVisible = bmsError != "";
}
RowLayout {
id: layout
anchors.fill: parent
@ -151,6 +157,22 @@ ApplicationWindow {
Layout.row: 3
Layout.column: 1
}
Text {
text: "BMS Error:"
Layout.row: 4
Layout.column: 0
visible: bmsErrorVisible
color: "red"
font.bold: true
}
Text {
text: bmsError
Layout.row: 4
Layout.column: 1
visible: bmsErrorVisible
color: "red"
font.bold: true
}
}
}