-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JKBMS Bluetooth - added battery details (#454)
* added battery details - added: capacity - added: MOS temperature - added: charging switch status - added: discharging switch status - added: balancing switch status - added: show if balancing is active and which cells are balanced - added: cell imbalance alert * changed cell imbalance thresholds * added battery details - added: MOS temperature - added: Balancing switch status
- Loading branch information
Showing
7 changed files
with
138 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import QtQuick 1.1 | ||
import "utils.js" as Utils | ||
|
||
MbPage { | ||
id: root | ||
property string bindPrefix | ||
|
||
model: VisualItemModel { | ||
MbItemOptions { | ||
id: systemSwitch | ||
description: qsTr("System Switch") | ||
bind: Utils.path(bindPrefix, "/SystemSwitch") | ||
readonly: true | ||
possibleValues:[ | ||
MbOption{description: qsTr("Disabled"); value: 0}, | ||
MbOption{description: qsTr("Enabled"); value: 1} | ||
] | ||
} | ||
|
||
MbItemOptions { | ||
description: qsTr("Allow to charge") | ||
bind: Utils.path(bindPrefix, "/Io/AllowToCharge") | ||
readonly: true | ||
possibleValues:[ | ||
MbOption{description: qsTr("No"); value: 0}, | ||
MbOption{description: qsTr("Yes"); value: 1} | ||
] | ||
} | ||
|
||
MbItemOptions { | ||
description: qsTr("Allow to discharge") | ||
bind: Utils.path(bindPrefix, "/Io/AllowToDischarge") | ||
readonly: true | ||
possibleValues:[ | ||
MbOption{description: qsTr("No"); value: 0}, | ||
MbOption{description: qsTr("Yes"); value: 1} | ||
] | ||
} | ||
|
||
MbItemOptions { | ||
description: qsTr("Allow to balance") | ||
bind: service.path("/Io/AllowToBalance") | ||
readonly: true | ||
show: item.valid | ||
possibleValues:[ | ||
MbOption{description: qsTr("No"); value: 0}, | ||
MbOption{description: qsTr("Yes"); value: 1} | ||
] | ||
} | ||
|
||
MbItemOptions { | ||
description: qsTr("External relay") | ||
bind: Utils.path(bindPrefix, "/Io/ExternalRelay") | ||
readonly: true | ||
show: item.valid | ||
possibleValues:[ | ||
MbOption{description: qsTr("Inactive"); value: 0}, | ||
MbOption{description: qsTr("Active"); value: 1} | ||
] | ||
} | ||
|
||
MbItemOptions { | ||
description: qsTr("Programmable Contact") | ||
bind: Utils.path(bindPrefix, "/Io/ProgrammableContact") | ||
readonly: true | ||
show: item.valid | ||
possibleValues:[ | ||
MbOption{description: qsTr("Inactive"); value: 0}, | ||
MbOption{description: qsTr("Active"); value: 1} | ||
] | ||
} | ||
} | ||
} |