Skip to content

Commit

Permalink
fix: Fix cooling fan routine
Browse files Browse the repository at this point in the history
  • Loading branch information
tzebrowski committed Feb 15, 2024
1 parent c6b0e72 commit 16a1746
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/giulia_2.0_gme.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@

"id": "10000",
"mode": "2F",
"pid": "509203FF",
"description": "Cooling Fan request\nSTART",
"pid": "50920300FF",
"description": "Cooling Fan - START",
"overrides" : {
"canMode": "22"
}
},
{
"id": "10001",
"mode": "2F",
"pid": "509203",
"description": "Cooling Fan Request\nSTOP",
"pid": "509200",
"description": "Cooling Fan - Return Control to ECU",
"overrides" : {
"canMode": "22"
}
Expand Down Expand Up @@ -736,7 +736,7 @@
"min": "0",
"max": "1000",
"units": "kg/h",
"formula": "parseFloat(((256 * A + B)/8).toFixed(2))"
"formula": "parseFloat(((256 * A + B) * 0.125).toFixed(2))"
},

{
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/obd/metrics/api/RoutinesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public class RoutinesTest {

@ParameterizedTest
@CsvSource(value = {
"22=DA10F1=2F509203FF=10000=NODATA=NO_DATA",
"22=DA10F1=2F509203FF=10000=7F=ERROR",
"22=DA10F1=2F509203FF=10000=6F5092=SUCCESS",
"22=DA10F1=2F50920300FF=10000=NODATA=NO_DATA",
"22=DA10F1=2F50920300FF=10000=7F=ERROR",
"22=DA10F1=2F50920300FF=10000=6F5092=SUCCESS",
"INSTRUMENT_PANEL=DA60F1=2F55720308=10002=NODATA=NO_DATA",
"INSTRUMENT_PANEL=DA60F1=2F55720308=10002=6F557203=SUCCESS",
"INSTRUMENT_PANEL=DA60F1=2F55720308=10002=7F2F13=ERROR"
Expand Down

0 comments on commit 16a1746

Please sign in to comment.