Check temperature & voltage
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user