@@ -174,6 +174,9 @@ void CarHyundaiIoniq::parseRowMerged() {
|
|||||||
//liveData->params.batMaxC = liveData->hexToDecFromResponse(32, 34, 1, true);
|
//liveData->params.batMaxC = liveData->hexToDecFromResponse(32, 34, 1, true);
|
||||||
//liveData->params.batMinC = liveData->hexToDecFromResponse(34, 36, 1, true);
|
//liveData->params.batMinC = liveData->hexToDecFromResponse(34, 36, 1, true);
|
||||||
|
|
||||||
|
tempByte = liveData->hexToDecFromResponse(104, 106, 1, false);
|
||||||
|
liveData->params.chargingOn = (bitRead(tempByte, 2) == 1);
|
||||||
|
|
||||||
// This is more accurate than min/max from BMS. It's required to detect kona/eniro cold gates (min 15C is needed > 43kW charging, min 25C is needed > 58kW charging)
|
// This is more accurate than min/max from BMS. It's required to detect kona/eniro cold gates (min 15C is needed > 43kW charging, min 25C is needed > 58kW charging)
|
||||||
liveData->params.batInletC = liveData->hexToDecFromResponse(48, 50, 1, true);
|
liveData->params.batInletC = liveData->hexToDecFromResponse(48, 50, 1, true);
|
||||||
if (liveData->params.speedKmh < 10 && liveData->params.batPowerKw >= 1 && liveData->params.socPerc > 0 && liveData->params.socPerc <= 100) {
|
if (liveData->params.speedKmh < 10 && liveData->params.batPowerKw >= 1 && liveData->params.socPerc > 0 && liveData->params.socPerc <= 100) {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ void LiveData::initParams() {
|
|||||||
params.lastIgnitionOnTime = 0;
|
params.lastIgnitionOnTime = 0;
|
||||||
params.operationTimeSec = 0;
|
params.operationTimeSec = 0;
|
||||||
params.chargingStartTime = params.currentTime = 0;
|
params.chargingStartTime = params.currentTime = 0;
|
||||||
|
params.chargingOn = false;
|
||||||
params.lightInfo = 0;
|
params.lightInfo = 0;
|
||||||
params.headLights = false;
|
params.headLights = false;
|
||||||
params.dayLights = false;
|
params.dayLights = false;
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ typedef struct {
|
|||||||
char sdcardFilename[32];
|
char sdcardFilename[32];
|
||||||
// Car params
|
// Car params
|
||||||
bool ignitionOn;
|
bool ignitionOn;
|
||||||
|
bool chargingOn;
|
||||||
time_t lastIgnitionOnTime;
|
time_t lastIgnitionOnTime;
|
||||||
uint64_t operationTimeSec;
|
uint64_t operationTimeSec;
|
||||||
bool sdcardCanNotify;
|
bool sdcardCanNotify;
|
||||||
|
|||||||
Reference in New Issue
Block a user