rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
honda_obd1.cpp File Reference

Functions

void setHondaObd1 ()
 

Function Documentation

◆ setHondaObd1()

void setHondaObd1 ( )

Definition at line 9 of file honda_obd1.cpp.

9 {
10 strcpy(engineConfiguration->engineMake, ENGINE_MAKE_HONDA);
11
13 engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
14
15 engineConfiguration->map.sensor.type = MT_DENSO183;
16 engineConfiguration->ignitionMode = IM_ONE_COIL;
17
18 engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
20
26
27 // we expect end users to use timing light to validate specific vehicle!
29
30 // what's average displacement for Honda OBD1? :)
32
33 // Keihin 06164-P0A-A00
35
36 // Disable ETBs
37 engineConfiguration->etbFunctions[0] = dc_function_e::DC_None;
38 engineConfiguration->etbFunctions[1] = dc_function_e::DC_None;
39
40 // ECU does not control main relay
42
43#ifdef HW_HELLEN_UAEFI
44#if (IGN_LOAD_COUNT == 16) && (IGN_RPM_COUNT == 16) && (FUEL_LOAD_COUNT == 16) && (FUEL_RPM_COUNT == 16)
46#endif
47#endif // HW_HELLEN_UAEFI
48
49 strcpy(engineConfiguration->gpPwmNote[0], "VTC");
50 gppwm_channel *vtcControl = &engineConfiguration->gppwm[0];
51 vtcControl->loadAxis = GPPWM_Map;
52 vtcControl->pwmFrequency = 0;
53#ifdef HW_HELLEN_UAEFI
54 // Honda ICM is weird it fires spark on RAISING edge and has internal pull-up
55 // thus we use a low side output to drive OEM ignition
56 engineConfiguration->ignitionPins[0] = Gpio::MM100_IGN7; // low side!
57
58 engineConfiguration->idle.solenoidPin = Gpio::MM100_INJ8;
60 engineConfiguration->acRelayPin = Gpio::MM100_OUT_PWM1;
61
62 engineConfiguration->camInputs[0] = Gpio::MM100_UART8_RX; // "C18 VR1+ Discrete"
64
66 setPPSInputs(EFI_ADC_NONE, EFI_ADC_NONE);
67 vtcControl->pin = Gpio::MM100_IGN6;
68#endif // HW_HELLEN_UAEFI
69}
@ Unassigned
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2)
static constexpr engine_configuration_s * engineConfiguration
static void cannedignitionTable()

Referenced by applyEngineType().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.