Line |
Branch |
Decision |
Exec |
Source |
1 |
|
|
|
/* |
2 |
|
|
|
* @file ford_festiva.cpp |
3 |
|
|
|
* |
4 |
|
|
|
* todo: revisit "unit" tests and remove this configuration? |
5 |
|
|
|
* |
6 |
|
|
|
* http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Protege_1993 |
7 |
|
|
|
* http://rusefi.com/forum/viewtopic.php?f=3&t=537 |
8 |
|
|
|
* http://rusefi.com/forum/viewtopic.php?f=3&t=822 |
9 |
|
|
|
* |
10 |
|
|
|
* @date Jan 3, 2016 |
11 |
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020 |
12 |
|
|
|
*/ |
13 |
|
|
|
|
14 |
|
|
|
#include "pch.h" |
15 |
|
|
|
|
16 |
|
|
|
#include "ford_festiva.h" |
17 |
|
|
|
#include "custom_engine.h" |
18 |
|
|
|
|
19 |
|
|
|
/** |
20 |
|
|
|
* pin 1I/W9 - extra +5v |
21 |
|
|
|
* set engine_type 14 |
22 |
|
|
|
*/ |
23 |
|
|
✗ |
void setFordEscortGt() { |
24 |
|
|
✗ |
engineConfiguration->trigger.type = trigger_type_e::TT_MAZDA_DOHC_1_4; |
25 |
|
|
|
|
26 |
|
|
✗ |
engineConfiguration->displacement = 1.839; |
27 |
|
|
✗ |
setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY); |
28 |
|
|
|
|
29 |
|
|
|
// in case of DOHC distributor we have two signals |
30 |
|
|
✗ |
engineConfiguration->triggerInputPins[0] = Gpio::C6; |
31 |
|
|
✗ |
engineConfiguration->triggerInputPins[1] = Gpio::A5; // 2E White CKP |
32 |
|
|
|
// set global_trigger_offset_angle -37 |
33 |
|
|
✗ |
engineConfiguration->globalTriggerAngleOffset = -37; |
34 |
|
|
|
|
35 |
|
|
|
// todo: change to 15? |
36 |
|
|
|
// set cranking_timing_angle 3 |
37 |
|
|
✗ |
engineConfiguration->crankingTimingAngle = 3; |
38 |
|
|
|
|
39 |
|
|
✗ |
setSingleCoilDwell(); |
40 |
|
|
✗ |
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; |
41 |
|
|
|
|
42 |
|
|
✗ |
engineConfiguration->injectionPins[0] = Gpio::D3; |
43 |
|
|
✗ |
engineConfiguration->injectionPins[1] = Gpio::E2; |
44 |
|
|
✗ |
} |
45 |
|
|
|
|
46 |
|
|
|
|