Various changes have been made as a result of the discussion of the first version
This commit is contained in:
@@ -6,6 +6,8 @@ import Cubo 1.0
|
||||
import Utils 1.0
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 15
|
||||
anchors.fill: parent
|
||||
@@ -298,6 +300,8 @@ Item {
|
||||
|
||||
Connections {
|
||||
target: BmsInterface.commands()
|
||||
enabled: root.visible
|
||||
|
||||
onValuesReceived: {
|
||||
batteryChargeLevelLabel.text = values.soC
|
||||
batteryVoltageLabel.text = MathHelper.roundDouble(values.packVoltage)
|
||||
@@ -334,7 +338,7 @@ Item {
|
||||
|
||||
Timer {
|
||||
id: refreshValuesTimer
|
||||
interval: 5000
|
||||
interval: 1000
|
||||
onTriggered: getValues()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user