Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cars/IONIQ_BEV.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ def getData(self):
'rapidChargePort': 1 if chargingBits != None and \
chargingBits & 0x40 == 0x40 else 0,

'cumulativeEnergyCharged': int.from_bytes(raw[2101][0x7EC25][6:7] + raw[2101][0x7EC26][0:3], byteorder='big', signed=False) / 10.0 \
if 0x7EC25 in raw[2101] and 0x7EC26 in raw[2101] else None,

'cumulativeEnergyDischarged': int.from_bytes(raw[2101][0x7EC26][3:7], byteorder='big', signed=False) / 10.0 \
if 0x7EC26 in raw[2101] else None,

'dcBatteryCurrent': dcBatteryCurrent,

'dcBatteryPower': dcBatteryCurrent * dcBatteryVoltage / 1000.0 \
Expand Down