rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
gm_sbc.h File Reference

Functions

void setGmSbc ()
 
void setGmLcv ()
 
void setGmLtg ()
 
void setGmLnf ()
 
void setGmSbcGen5 ()
 

Function Documentation

◆ setGmLcv()

void setGmLcv ( )

Definition at line 209 of file gm_sbc.cpp.

Referenced by applyEngineType().

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

◆ setGmLnf()

void setGmLnf ( )

Definition at line 216 of file gm_sbc.cpp.

216 {
217 setGmGdi();
219 strcpy(engineConfiguration->engineCode, "LNF");
220 setTPS1Calibration(880, 129, 118, 870);
221
223
224 // todo: engineConfiguration->hpfpCam = HPFP_CAM_IN1;
225#ifdef HW_HELLEN_8CHAN
226 engineConfiguration->vvtMode[1] = VVT_BOSCH_QUICK_START;
229 engineConfiguration->highPressureFuel.hwChannel = MM176_IN_MAP1_ANALOG; // 2A Aux Analog 4
230
231 engineConfiguration->vvtPins[0] = Gpio::MM176_OUT_PWM1;
232 engineConfiguration->vvtPins[1] = Gpio::MM176_OUT_PWM2;
233#endif // HW_HELLEN_8CHAN
234}
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax)
static void setGmGdi()
Definition gm_sbc.cpp:147

Referenced by applyEngineType().

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

◆ setGmLtg()

void setGmLtg ( )

Definition at line 237 of file gm_sbc.cpp.

237 {
240#ifdef HW_HELLEN_8CHAN
241 engineConfiguration->oilPressure.hwChannel = MM176_IN_MAP1_ANALOG; // 2A Aux Analog 4
243
244 engineConfiguration->triggerInputPins[0] = Gpio::MM176_IN_D4; // 9A - Hall Input 4
245
246 engineConfiguration->luaOutputPins[0] = Gpio::MM176_OUT_IO1; // 7C - High Side 3 - unusual starter
247 engineConfiguration->luaOutputPins[1] = Gpio::MM176_OUT_IO4, // 9C - Low Side 4 - unusual starter
248#endif // HW_HELLEN_8CHAN
249 strcpy(engineConfiguration->engineCode, "LTG");
250}
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]

Referenced by applyEngineType().

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

◆ setGmSbc()

void setGmSbc ( )

gm_sbc.h

Definition at line 81 of file gm_sbc.cpp.

81 {
83 // that's original firing order before gen 3
84 engineConfiguration->firingOrder = FO_1_8_4_3_6_5_7_2;
86
87 // see engine sniffer at https://github.com/rusefi/rusefi/issues/5353
88 // if injectors are wired in groups of four best to use channels 1 and 4
91
94
95 strcpy(engineConfiguration->engineMake, ENGINE_MAKE_GM);
96 strcpy(engineConfiguration->engineCode, "SBC");
97 // white wire "HEI E" plug pin D
98 engineConfiguration->ignitionMode = IM_ONE_COIL;
100
101 gppwm_channel *ignOverride = &engineConfiguration->gppwm[0];
102 ignOverride->pwmFrequency = 0;
103 strcpy(engineConfiguration->gpPwmNote[0], "ign ovrrd B");
104 setTable(ignOverride->table, 100);
105
106#ifdef HW_HELLEN_UAEFI121
107 // coil control plug pin A
108
109 // tan wire with a black trace - "HEI B", plug pin B (we use yellow)
110 ignOverride->pin = Gpio::MM100_IGN2; // 12a Coil 2
111 // tach plug pin C
112 engineConfiguration->triggerInputPins[0] = Gpio::MM100_IN_D2; // 35a HALL2 red wire
116#endif // HW_HELLEN_UAEFI121
117
118#if HW_PROTEUS
119 // tan wire with a black trace - "HEI B", plug pin B
120 ignOverride->pin = Gpio::PROTEUS_IGN_12;
122 // reminder about D101
123 engineConfiguration->injectionPins[0] = Gpio::PROTEUS_LS_14; // #1
124 // reminder about D104
125 engineConfiguration->injectionPins[3] = Gpio::PROTEUS_LS_15; // #4
126
127 // wow high side relay control on MEFI1 ELECTRONIC-FUEL-INJECTION-MEFI-1-2-5.7L-350CID-8.2L-502CID.pdf page 46
128 engineConfiguration->fuelPumpPin = Gpio::PROTEUS_HS_1;
129 // low side on MEFI3 ELECTRONIC-FUEL-INJECTION-MEFI-3-5.7L-350CID-8.2L-502CID.pdf page 487
130
132#endif // HW_PROTEUS
133 engineConfiguration->mainRelayPin = Gpio::Unassigned; // vehicle controls main relay
134
135 setStepperHw();
136
137 // 8 cylinders one coil HEI trigger
142 // Proteus Digital 1 is Tach input "HEI R", plug pin C
143
144 engineConfiguration->map.sensor.type = MT_GM_1_BAR;
145}
@ Unassigned
void setStepperHw()
Definition gm_sbc.cpp:15
scaled_channel< uint8_t, 2, 1 > table[GPPWM_LOAD_COUNT][GPPWM_RPM_COUNT]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)
void setGmCltSensor(ThermistorConf *thermistorConf)

Referenced by applyEngineType().

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

◆ setGmSbcGen5()

void setGmSbcGen5 ( )

Definition at line 252 of file gm_sbc.cpp.

252 {
253 setGmEcotec3();
257 engineConfiguration->firingOrder = FO_1_8_7_2_6_5_4_3;
258 engineConfiguration->map.sensor.type = MT_GM_1_BAR;
259
260 // engineConfiguration->hpfpPumpVolume = 0.623; // LT4
261 engineConfiguration->hpfpPumpVolume = 0.49; // cc per stroke
262
263 // LT 17.7 g/sec at 100bar which 1440
264 // todo: real flow!
265 engineConfiguration->injector.flow = 990; // 12.6g/sec
266
267#ifdef HW_HELLEN_8CHAN
270
271 engineConfiguration->injectionPins[4] = Gpio::MM176_INJ5;
272 engineConfiguration->injectionPins[5] = Gpio::MM176_INJ6;
273 engineConfiguration->injectionPins[6] = Gpio::MM176_INJ7;
274 engineConfiguration->injectionPins[7] = Gpio::MM176_INJ8;
275
276 engineConfiguration->ignitionPins[4] = Gpio::MM176_IGN5;
277 engineConfiguration->ignitionPins[5] = Gpio::MM176_IGN6;
278 engineConfiguration->ignitionPins[6] = Gpio::MM176_IGN7;
279 engineConfiguration->ignitionPins[7] = Gpio::MM176_IGN8;
280
281 engineConfiguration->starterControlPin = Gpio::MM176_SPI3_SCK; // 29C - Ignition 9
282
285 engineConfiguration->vvtMode[1] = VVT_INACTIVE;
287
288 // early models before SENT
289 // todo: early gen5 LS engines have redundant high pressure sensors #7364
290 engineConfiguration->highPressureFuel.v1 = 0.57; /* volts */;
292 engineConfiguration->highPressureFuel.v2 = 2.25; /* volts */;
294
295 engineConfiguration->lowPressureFuel.v1 = 2.9; /* volts */;
297 engineConfiguration->lowPressureFuel.v2 = 3.7; /* volts */;
299
301 engineConfiguration->oilPressure.value1 = 0; // 100 kPa absolute
303 engineConfiguration->oilPressure.value2 = 420; // 520 kPa absolute
304
305 engineConfiguration->oilPressure.hwChannel = MM176_IN_MAP1_ANALOG; // 2A Aux Analog 4
306 engineConfiguration->fuelLevelSensor = MM176_IN_O2S_ANALOG; // 3A - Aux Analog 2
307 engineConfiguration->lowPressureFuel.hwChannel = MM176_IN_AUX2_ANALOG; // 4A - Aux Analog 7
308 engineConfiguration->acPressure.hwChannel = MM176_IN_MAP2_ANALOG;// 10A - Aux Analog 5
309 engineConfiguration->flexSensorPin = Gpio::MM176_IN_SENS3;
310#endif // HW_HELLEN_8CHAN
311}
static void setGmEcotec3()
Definition gm_sbc.cpp:194

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.