From 09040ae6a6dc9b662303c8b205eef504de186b69 Mon Sep 17 00:00:00 2001 From: phanja <120447160+phanja@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:02:30 -0700 Subject: [PATCH 1/2] fix oilch_dis pid, added odometer and inits --- vehicle_profiles/toyota/rav4.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/vehicle_profiles/toyota/rav4.json b/vehicle_profiles/toyota/rav4.json index 7871666..0885bdd 100644 --- a/vehicle_profiles/toyota/rav4.json +++ b/vehicle_profiles/toyota/rav4.json @@ -1,12 +1,13 @@ { "car_model": "Toyota: Rav4", - "init": "ATSP6;ATST96;", + "init": "ATSP6;", "pids": [ { "pid": "015B2", "parameters": [ { "name": "SoC", + "pid_init": "ATST96;", "expression": "(B3*20)/51", "unit": "%", "class": "battery" @@ -14,7 +15,19 @@ ] }, { - "pid":"01311", + "pid": "01A61", + "parameters": [ + { + "name": "Odometer", + "pid_init": "ATST96;", + "expression": "(([B3:B6])/10)/1.609", + "unit": "mi", + "class": "distance" + } + ] + }, + { + "pid":"01317", "parameters": [ { "name": "OILCH_DIS", From 6397976d5e60c64c5bff18f3e0f5371b27100ed2 Mon Sep 17 00:00:00 2001 From: phanja <120447160+phanja@users.noreply.github.com> Date: Wed, 6 Nov 2024 01:02:19 -0800 Subject: [PATCH 2/2] Update rav4.json change units to km --- vehicle_profiles/toyota/rav4.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vehicle_profiles/toyota/rav4.json b/vehicle_profiles/toyota/rav4.json index 0885bdd..b825ecb 100644 --- a/vehicle_profiles/toyota/rav4.json +++ b/vehicle_profiles/toyota/rav4.json @@ -20,8 +20,8 @@ { "name": "Odometer", "pid_init": "ATST96;", - "expression": "(([B3:B6])/10)/1.609", - "unit": "mi", + "expression": "([B3:B6])/10", + "unit": "km", "class": "distance" } ] @@ -32,8 +32,8 @@ { "name": "OILCH_DIS", "pid_init": "ATSH7DF;", - "expression": "((256*B3)+B4)/1.609", - "unit": "mi", + "expression": "(256*B3)+B4", + "unit": "km", "class": "distance" } ]