This commit is contained in:
Lubos Petrovic
2020-10-18 12:14:03 +02:00
parent ac44cc0aba
commit 3cb1788f15
6 changed files with 22 additions and 3 deletions

View File

@@ -83,6 +83,8 @@ bool parseRowMergedHyundaiIoniq() {
if (currentAtshRequest.equals("ATSH7E2")) {
if (commandRequest.equals("2101")) {
params.speedKmh = hexToDec(responseRowMerged.substring(32, 36).c_str(), 2, false) * 0.0155; // / 100.0 *1.609 = real to gps is 1.750
if (params.speedKmh < -99 || params.speedKmh > 200)
params.speedKmh = 0;
}
if (commandRequest.equals("2102")) {
params.auxPerc = hexToDec(responseRowMerged.substring(50, 52).c_str(), 1, false);