Cell balancing calculation added. Fixed rounding of real numbers to the second decimal place
This commit is contained in:
@@ -3,6 +3,7 @@ import QtQuick.Layouts 1.12
|
||||
|
||||
import Controls 1.0 as Controls
|
||||
import Cubo 1.0
|
||||
import Utils 1.0
|
||||
|
||||
Item {
|
||||
ColumnLayout {
|
||||
@@ -299,27 +300,27 @@ Item {
|
||||
target: BmsInterface.commands()
|
||||
onValuesReceived: {
|
||||
batteryChargeLevelLabel.text = values.soC
|
||||
batteryVoltageLabel.text = values.packVoltage
|
||||
batteryVoltageLabel.text = MathHelper.roundDouble(values.packVoltage)
|
||||
|
||||
batteryTemperatureLabel.text = values.tempBattHigh
|
||||
bmsTemperatureLabel.text = values.tempBMSHigh
|
||||
batteryTemperatureLabel.text = MathHelper.roundDouble(values.tempBattHigh)
|
||||
bmsTemperatureLabel.text = MathHelper.roundDouble(values.tempBMSHigh)
|
||||
|
||||
maximumCellVoltageLabel.text = values.cVHigh
|
||||
minimumCellVoltageLabel.text = values.cVLow
|
||||
maximumCellVoltageLabel.text = MathHelper.roundDouble(values.cVHigh)
|
||||
minimumCellVoltageLabel.text = MathHelper.roundDouble(values.cVLow)
|
||||
|
||||
currentLabel.text = values.packCurrent
|
||||
currentLabel.text = MathHelper.roundDouble(values.packCurrent)
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: BmsInterface.bmsConfig()
|
||||
onUpdated: {
|
||||
serialNumberField.text = BmsInterface.bmsConfig().getParamDouble("notUsedCurrentThreshold") // TODO
|
||||
serialNumberField.text = MathHelper.roundDouble(BmsInterface.bmsConfig().getParamDouble("notUsedCurrentThreshold")) // TODO
|
||||
|
||||
numberOfModulesLabel.text = BmsInterface.bmsConfig().getParamInt("cellMonitorICCount")
|
||||
numberOfCellsLabel.text = BmsInterface.bmsConfig().getParamInt("noOfCellsSeries")
|
||||
|
||||
nominalCapacityLabel.text = BmsInterface.bmsConfig().getParamDouble("batteryCapacity")
|
||||
nominalCapacityLabel.text = MathHelper.roundDouble(BmsInterface.bmsConfig().getParamDouble("batteryCapacity"))
|
||||
actualCapacityLabel.text = nominalCapacityLabel.text // TODO
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user