diff --git a/firmware/config/engines/canam.cpp b/firmware/config/engines/canam.cpp index 14a1b20a88..8101e44439 100644 --- a/firmware/config/engines/canam.cpp +++ b/firmware/config/engines/canam.cpp @@ -19,7 +19,7 @@ void setMaverickX3() { // ? engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS; engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; - + // portion of this file was generated by TuneCanTool.java engineConfiguration->trigger.type = trigger_type_e::TT_TOOTHED_WHEEL_36_2; engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH; engineConfiguration->isForcedInduction = true; diff --git a/firmware/config/engines/canam_canned.cpp b/firmware/config/engines/canam_canned.cpp index aec3fbe037..a53470463b 100644 --- a/firmware/config/engines/canam_canned.cpp +++ b/firmware/config/engines/canam_canned.cpp @@ -1,3 +1,4 @@ +// content of this file was generated by TuneCanTool.java static void cannedsparkDwellValues() { static const float hardCodedsparkDwellValues[8] = {4.0, 3.3, 3.2, 3.1, 3.05, 2.97, 2.88, 2.8}; diff --git a/java_tools/tune-tools/src/main/java/com/rusefi/tools/tune/TuneCanTool.java b/java_tools/tune-tools/src/main/java/com/rusefi/tools/tune/TuneCanTool.java index be187dec76..81af202718 100644 --- a/java_tools/tune-tools/src/main/java/com/rusefi/tools/tune/TuneCanTool.java +++ b/java_tools/tune-tools/src/main/java/com/rusefi/tools/tune/TuneCanTool.java @@ -49,8 +49,10 @@ public class TuneCanTool { RootHolder.ROOT = "../firmware/"; - writeDiffBetweenLocalTuneFileAndDefaultTune("x", getDefaultTuneName(Fields.engine_type_e_MAVERICK_X3), - "C:\\stuff\\i\\canam-2022-short\\canam-progress-pnp-dec-29.msq", "x"); + writeDiffBetweenLocalTuneFileAndDefaultTune("example.msq"); + + writeDiffBetweenLocalTuneFileAndDefaultTune("vehicleName", getDefaultTuneName(Fields.engine_type_e_MAVERICK_X3), + "C:\\stuff\\i\\canam-2022-short\\canam-progress-pnp-dec-29.msq", "comment"); // processREOtune(1507, Fields.engine_type_e_HELLEN_154_HYUNDAI_COUPE_BK2, "BK2"); @@ -85,6 +87,17 @@ public class TuneCanTool { writeDiffBetweenLocalTuneFileAndDefaultTune(vehicleName, currentTuneFileName, localFileName, url); } + + private static void writeDiffBetweenLocalTuneFileAndDefaultTune(String localFileName) throws JAXBException, IOException { + writeDiffBetweenLocalTuneFileAndDefaultTune("vehicleName", DEFAULT_TUNE, + localFileName, "comment"); + } + + private static void writeDiffBetweenLocalTuneFileAndDefaultTune(int engineCode, String localFileName, String cannedComment) throws JAXBException, IOException { + writeDiffBetweenLocalTuneFileAndDefaultTune("vehicleName", getDefaultTuneName(engineCode), + localFileName, cannedComment); + } + private static void writeDiffBetweenLocalTuneFileAndDefaultTune(String vehicleName, String defaultTuneFileName, String localFileName, String cannedComment) throws JAXBException, IOException { String reportsOutputFolder = "tune_reports"; new File(reportsOutputFolder).mkdir();