only: obd1
This commit is contained in:
parent
e354181d6c
commit
09a24755ee
|
@ -1,5 +1,6 @@
|
|||
#include "pch.h"
|
||||
#include "defaults.h"
|
||||
#include "honda_obd1_canned_tables.cpp"
|
||||
|
||||
#if HW_HELLEN_UAEFI
|
||||
#include "hellen_meta.h"
|
||||
|
@ -14,6 +15,15 @@ void setHondaObd1() {
|
|||
engineConfiguration->map.sensor.type = MT_DENSO183;
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
|
||||
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
|
||||
engineConfiguration->fuelReferencePressure = 294;
|
||||
|
||||
engineConfiguration->tpsMin = 124;
|
||||
engineConfiguration->tpsMax = 919;
|
||||
engineConfiguration->fan1ExtraIdle = 10;
|
||||
engineConfiguration->injector.flow = 240;
|
||||
engineConfiguration->mapErrorDetectionTooHigh = 250;
|
||||
|
||||
// we expect end users to use timing light to validate specific vehicle!
|
||||
engineConfiguration->globalTriggerAngleOffset = 80;
|
||||
|
||||
|
@ -30,8 +40,13 @@ void setHondaObd1() {
|
|||
// ECU does not control main relay
|
||||
engineConfiguration->mainRelayPin = Gpio::Unassigned;
|
||||
|
||||
#if HW_HELLEN_UAEFI
|
||||
cannedignitionTable();
|
||||
#endif // HW_HELLEN_UAEFI
|
||||
|
||||
strcpy(engineConfiguration->gpPwmNote[0], "VTC");
|
||||
gppwm_channel *vtcControl = &engineConfiguration->gppwm[0];
|
||||
vtcControl->loadAxis = GPPWM_Map;
|
||||
vtcControl->pwmFrequency = 0;
|
||||
#if HW_HELLEN_UAEFI
|
||||
// Honda ICM is weird it fires spark on RAISING edge and has internal pull-up
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
#if HW_HELLEN_UAEFI
|
||||
#if (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (FUEL_LOAD_COUNT == DEFAULT_FUEL_LOAD_COUNT) && (FUEL_RPM_COUNT == DEFAULT_FUEL_LOAD_COUNT)
|
||||
|
||||
static void cannedignitionTable() {
|
||||
static const float hardCodedignitionTable[16][16] = {
|
||||
{15.400, 15.800, 16.600, 17.600, 24.900, 28.900, 32.800, 36.700, 37.700, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, },
|
||||
{15.300, 15.600, 16.400, 17.300, 24.600, 28.500, 32.300, 36.200, 37.100, 38.400, 38.400, 38.400, 38.400, 38.400, 38.400, 38.400, },
|
||||
{17.000, 18.900, 16.700, 20.500, 24.300, 28.100, 31.800, 35.600, 36.500, 37.800, 37.800, 37.800, 37.800, 37.800, 37.800, 37.800, },
|
||||
{16.800, 18.700, 16.400, 20.200, 23.900, 27.700, 31.400, 35.100, 36.000, 37.200, 37.200, 37.200, 37.200, 37.200, 37.200, 37.200, },
|
||||
{16.600, 18.500, 16.100, 19.800, 23.400, 27.100, 30.700, 34.300, 35.100, 36.300, 36.300, 36.300, 36.300, 36.300, 36.300, 36.300, },
|
||||
{16.500, 18.300, 15.900, 19.500, 23.100, 26.700, 30.200, 33.800, 34.500, 35.700, 35.700, 35.700, 35.700, 35.700, 35.700, 35.700, },
|
||||
{16.400, 18.200, 15.700, 19.200, 22.700, 26.300, 29.800, 33.300, 33.900, 35.100, 35.100, 35.100, 35.100, 35.100, 35.100, 35.100, },
|
||||
{11.100, 12.800, 10.300, 13.700, 22.400, 25.900, 29.300, 32.800, 33.300, 34.500, 34.500, 34.500, 34.500, 34.500, 34.500, 34.500, },
|
||||
{9.000, 10.700, 8.100, 11.500, 22.000, 25.500, 28.900, 32.300, 34.500, 35.600, 35.600, 35.600, 33.200, 33.200, 33.200, 33.200, },
|
||||
{8.500, 10.200, 7.500, 10.800, 21.500, 24.900, 28.200, 31.500, 33.600, 34.700, 34.700, 34.700, 32.300, 32.300, 32.300, 32.300, },
|
||||
{5.800, 7.400, 4.700, 7.900, 21.200, 24.500, 27.700, 31.000, 33.000, 34.100, 34.100, 34.100, 31.700, 31.700, 31.700, 31.700, },
|
||||
{-2.300, -0.700, -3.500, -0.300, 20.900, 24.100, 27.200, 30.400, 32.400, 33.500, 33.500, 33.500, 31.100, 31.100, 31.100, 31.100, },
|
||||
{-2.500, -0.900, -3.800, -0.600, 20.500, 23.700, 26.800, 29.900, 31.900, 32.900, 32.900, 32.900, 30.500, 30.500, 30.500, 30.500, },
|
||||
{-2.500, -0.900, -3.800, -0.700, 20.500, 23.600, 26.700, 29.800, 31.800, 32.800, 32.800, 32.800, 30.400, 30.400, 30.400, 30.400, },
|
||||
{-2.500, -0.900, -3.800, -0.700, 20.500, 23.600, 26.700, 29.800, 31.800, 32.800, 32.800, 32.800, 30.400, 30.400, 30.400, 30.400, },
|
||||
{-2.500, -0.900, -3.800, -0.700, 20.500, 23.600, 26.700, 29.800, 31.800, 32.800, 32.800, 32.800, 30.400, 30.400, 30.400, 30.400, },
|
||||
};
|
||||
copyTable(config->ignitionTable, hardCodedignitionTable);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
|
@ -1,3 +1,4 @@
|
|||
downloaded_tunes
|
||||
.gradle
|
||||
**/rusefi_tool.log
|
||||
log
|
||||
|
|
|
@ -24,6 +24,7 @@ public class TuneCanToolRunner extends TuneCanTool {
|
|||
public static void runPopular() throws JAXBException, IOException {
|
||||
// while adding a line here make sure corresponding line is at rusEfiFunctionalTest.cpp
|
||||
// https://github.com/rusefi/rusefi/issues/4038
|
||||
processREOtune(1621, engine_type_e.HONDA_OBD1, "Honda-OBD1", "");
|
||||
processREOtune(985, engine_type_e.MAZDA_MIATA_NB2, "MazdaMiataNB2", "nb2");
|
||||
processREOtune(1508, engine_type_e.HELLEN_154_HYUNDAI_COUPE_BK1, "COUPE-BK1", "coupleBK1");
|
||||
processREOtune(1507, engine_type_e.HELLEN_154_HYUNDAI_COUPE_BK2, "COUPE-BK2", "coupleBK2");
|
||||
|
|
Loading…
Reference in New Issue