| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | /** | |||
| 2 | * @file ford_1995_inline_6.cpp | |||
| 3 | * @brief Default engine configuration for a 1995 Ford inline 6 engine | |||
| 4 | * | |||
| 5 | * todo: adjust/remove/modernize "unit" tests which still depend on this config? | |||
| 6 | * | |||
| 7 | * FORD_INLINE_6_1995 = 7 | |||
| 8 | * set engine_type 7 | |||
| 9 | * | |||
| 10 | * @date Feb 12, 2014 | |||
| 11 | * @author Andrey Belomutskiy, (c) 2012-2020 | |||
| 12 | */ | |||
| 13 | ||||
| 14 | #include "pch.h" | |||
| 15 | ||||
| 16 | #include "ford_1995_inline_6.h" | |||
| 17 | ||||
| 18 | /** | |||
| 19 | * @brief Default values for persistent properties | |||
| 20 | */ | |||
| 21 | 4 | void setFordInline6() { | ||
| 22 | 4 | engineConfiguration->cylindersCount = 6; | ||
| 23 | ||||
| 24 | 4 | setCamOperationMode(); | ||
| 25 | ||||
| 26 | 4 | engineConfiguration->ignitionMode = IM_ONE_COIL; | ||
| 27 | 4 | engineConfiguration->firingOrder = FO_1_5_3_6_2_4; | ||
| 28 | 4 | engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS; | ||
| 29 | 4 | engineConfiguration->injectionMode = IM_BATCH; | ||
| 30 | ||||
| 31 | /** | |||
| 32 | * 0.5ms dwell time just to be sure it would fit within camshaft revolution, dwell is not controlled by us anyway | |||
| 33 | */ | |||
| 34 | 4 | setConstantDwell(FORD_INLINE_DWELL); | ||
| 35 | ||||
| 36 | /** | |||
| 37 | * We treat the trigger as 6/0 toothed wheel | |||
| 38 | */ | |||
| 39 | 4 | engineConfiguration->skippedWheelOnCam = true; | ||
| 40 | 4 | engineConfiguration->trigger.type = trigger_type_e::TT_TOOTHED_WHEEL; | ||
| 41 | 4 | engineConfiguration->trigger.customTotalToothCount = 6; | ||
| 42 | 4 | engineConfiguration->trigger.customSkippedToothCount = 0; | ||
| 43 | ||||
| 44 | 4 | engineConfiguration->globalTriggerAngleOffset = 0; | ||
| 45 | ||||
| 46 | 4 | engineConfiguration->clt.config = {-10, 60, 120, 160310, 7700, 1180, 2700}; | ||
| 47 | 4 | engineConfiguration->iat.config = {-10, 60, 120, 160310, 7700, 1180, 2700}; | ||
| 48 | ||||
| 49 | 4 | engineConfiguration->tps1_1AdcChannel = EFI_ADC_4; | ||
| 50 | ||||
| 51 | 4 | engineConfiguration->map.sensor.hwChannel = EFI_ADC_15; | ||
| 52 | ||||
| 53 | 4 | engineConfiguration->injectionPins[0] = Gpio::B9; | ||
| 54 | 4 | engineConfiguration->injectionPins[1] = Gpio::E3; | ||
| 55 | 4 | engineConfiguration->ignitionPins[0] = Gpio::C15; | ||
| 56 | ||||
| 57 | 4 | engineConfiguration->injectionPins[2] = Gpio::Unassigned; | ||
| 58 | 4 | engineConfiguration->fanPin = Gpio::Unassigned; | ||
| 59 | ||||
| 60 | // engineConfiguration->vbattAdcChannel = 0; // | |||
| 61 | 4 | engineConfiguration->mafAdcChannel = EFI_ADC_1; | ||
| 62 | ||||
| 63 | 4 | engineConfiguration->triggerInputPins[0] = Gpio::A8; | ||
| 64 | 4 | engineConfiguration->triggerInputPins[1] = Gpio::Unassigned; | ||
| 65 | 4 | } | ||
| 66 |