rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
dodge_neon.cpp
Go to the documentation of this file.
1/**
2 * @file dodge_neon.cpp
3 *
4 * DODGE_NEON_1995 = 2
5 * set engine_type 2
6 *
7 * DODGE_NEON_2003 = 23
8 * set engine_type 23
9 * http://rusefi.com/wiki/index.php?title=Vehicle:Dodge_Neon_2003
10 *
11 * @date Dec 16, 2013
12 * @author Andrey Belomutskiy, (c) 2012-2020
13 */
14
15#include "pch.h"
16
17#include "dodge_neon.h"
18
19#include "custom_engine.h"
20
23
24 engineConfiguration->fuelAlgorithm = engine_load_mode_e::LM_ALPHA_N;
25
27
29 // set injection_mode 1
30 engineConfiguration->injectionMode = IM_SEQUENTIAL;
31
32 // set ignition_mode 2
33 engineConfiguration->ignitionMode = IM_WASTED_SPARK;
34 engineConfiguration->firingOrder = FO_1_3_4_2;
35
36 // set global_trigger_offset_angle 137
39
40 // set cranking_timing_angle 0
42
44
45 engineConfiguration->clt.config = {0, 30, 100, 32500, 7550, 700, 2700};
46}
47
50
51 // set global_trigger_offset_angle 38
53
55 engineConfiguration->injectionMode = IM_SEQUENTIAL;
56 engineConfiguration->ignitionMode = IM_WASTED_SPARK;
59
60 /**
61 * 77C
62 * 1200 rpm
63 * fuel 3
64 *
65 * 88C
66 * fuel 2.8
67 *
68 */
69 //setWholeTimingTable(12);
70
71 //setMap(config->veTable, 50);
72
73 // set cranking_timing_angle 710
75
76 /**
77 * bosch 4G1139
78 * http://forum.2gn.org/viewtopic.php?t=21657
79 * or is it 225 as mentioned at http://turbobazar.ru/showpost.php?p=750815&postcount=796 ?
80 */
82
84
85 setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY);
86
87 setFuelTablesLoadBin(20, 120);
88
90
91 /**
92 * PA4 Wideband O2 Sensor
93 */
95
97 engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
98
99 /**
100 * http://rusefi.com/wiki/index.php?title=Manual:Hardware_Frankenso_board
101 */
102
105
106 /**
107 * MAP PA0
108 */
109 engineConfiguration->map.sensor.hwChannel = EFI_ADC_0; // PA0
110
111// rev 0.1 green board
112// engineConfiguration->map.sensor.hwChannel = EFI_ADC_6; // PA6
113// engineConfiguration->tps1_1AdcChannel = EFI_ADC_15; // PC5
114
115
116 /**
117 * TPS
118 */
120 engineConfiguration->tpsMax = 625; // convert 12to10 bit (ADC/4)
121 engineConfiguration->tpsMin = 125; // convert 12to10 bit (ADC/4)
122
123 /**
124 * IAT D15/W7
125 */
126 engineConfiguration->iat.adcChannel = EFI_ADC_11;
127
128 /**
129 * CLT D13/W9
130 */
131 engineConfiguration->clt.adcChannel = EFI_ADC_12;
132
133 engineConfiguration->map.sensor.type = MT_DODGE_NEON_2003;
134
136
139// engineConfiguration->clutchUpPin = Gpio::A14; // note SWCLK - conflict with SWD
141
142// engineConfiguration->vehicleSpeedSensorInputPin = Gpio::A8;
143
146// engineConfiguration->fanOnTemperature = 115; // knock testing - value is a bit high
147// engineConfiguration->fanOffTemperature = 100;
148
149 setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY);
150
151//temp engineConfiguration->alternatorControlPin = Gpio::D5;
158
160
163
166
169
170 // end of setDodgeNeonNGCEngineConfiguration
171}
@ Unassigned
void setDodgeNeonNGCEngineConfiguration()
void setDodgeNeon1995EngineConfiguration()
1995 Dodge Neon default engine configuration
void commonFrankensoAnalogInputs()
void setWholeTimingTable(angle_t value)
void setFuelTablesLoadBin(float minValue, float maxValue)
static constexpr persistent_config_s * config
static constexpr engine_configuration_s * engineConfiguration
void setAlgorithm(engine_load_mode_e algo)
float cltIdleCorrTable[CLT_IDLE_TABLE_RPM_SIZE][CLT_IDLE_TABLE_CLT_SIZE]
scaled_channel< int16_t, 10, 1 > alternatorVoltageTargetTable[ALTERNATOR_VOLTAGE_TARGET_SIZE][ALTERNATOR_VOLTAGE_TARGET_SIZE]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)
void setLinearCurve(TValue(&array)[TSize], float from, float to, float precision=0.01f)
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup)