rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
ford_1995_inline_6.cpp
Go to the documentation of this file.
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 */
22 engineConfiguration->cylindersCount = 6;
23
25
26 engineConfiguration->ignitionMode = IM_ONE_COIL;
27 engineConfiguration->firingOrder = FO_1_5_3_6_2_4;
28 engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
29 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 setConstantDwell(FORD_INLINE_DWELL);
35
36 /**
37 * We treat the trigger as 6/0 toothed wheel
38 */
39 engineConfiguration->skippedWheelOnCam = true;
41 engineConfiguration->trigger.customTotalToothCount = 6;
42 engineConfiguration->trigger.customSkippedToothCount = 0;
43
44 engineConfiguration->globalTriggerAngleOffset = 0;
45
46 engineConfiguration->clt.config = {-10, 60, 120, 160310, 7700, 1180, 2700};
47 engineConfiguration->iat.config = {-10, 60, 120, 160310, 7700, 1180, 2700};
48
49 engineConfiguration->tps1_1AdcChannel = EFI_ADC_4;
50
51 engineConfiguration->map.sensor.hwChannel = EFI_ADC_15;
52
53 engineConfiguration->injectionPins[0] = Gpio::B9;
54 engineConfiguration->injectionPins[1] = Gpio::E3;
55 engineConfiguration->ignitionPins[0] = Gpio::C15;
56
57 engineConfiguration->injectionPins[2] = Gpio::Unassigned;
59
60 // engineConfiguration->vbattAdcChannel = 0; //
61 engineConfiguration->mafAdcChannel = EFI_ADC_1;
62
63 engineConfiguration->triggerInputPins[0] = Gpio::A8;
64 engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
65}
@ Unassigned
void setConstantDwell(floatms_t dwellMs)
Sets the same dwell time across the whole getRpm() range set dwell X.
void setCamOperationMode()
static constexpr engine_configuration_s * engineConfiguration
void setFordInline6()
Default values for persistent properties.