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 ()
 
void setStepperHw ()
 

Function Documentation

◆ setGmLcv()

void setGmLcv ( )

Definition at line 208 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 215 of file gm_sbc.cpp.

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

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 236 of file gm_sbc.cpp.

236 {
239#ifdef HW_HELLEN_8CHAN
240 engineConfiguration->oilPressure.hwChannel = MM176_IN_MAP1_ANALOG; // 2A Aux Analog 4
242
243 engineConfiguration->triggerInputPins[0] = Gpio::MM176_IN_D4; // 9A - Hall Input 4
244
245 engineConfiguration->luaOutputPins[0] = Gpio::MM176_OUT_IO1; // 7C - High Side 3 - unusual starter
246 engineConfiguration->luaOutputPins[1] = Gpio::MM176_OUT_IO4, // 9C - Low Side 4 - unusual starter
247#endif // HW_HELLEN_8CHAN
248 strcpy(engineConfiguration->engineCode, "LTG");
249}
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 74 of file gm_sbc.cpp.

74 {
76 // that's original firing order before gen 3
77 engineConfiguration->firingOrder = FO_1_8_4_3_6_5_7_2;
79
80 // see engine sniffer at https://github.com/rusefi/rusefi/issues/5353
81 // if injectors are wired in groups of four best to use channels 1 and 4
84
85 strcpy(engineConfiguration->engineMake, ENGINE_MAKE_GM);
86 strcpy(engineConfiguration->engineCode, "SBC");
87 // white wire "HEI E" plug pin D
88 engineConfiguration->ignitionMode = IM_ONE_COIL;
90
91 // this is used to tell HEI that we are always in charge of timing advance
92 gppwm_channel *ignOverride = &engineConfiguration->gppwm[0];
93 ignOverride->pwmFrequency = 0;
94 strcpy(engineConfiguration->gpPwmNote[0], "ign ovrrd B");
95 setTable(ignOverride->table, 100);
96
97#ifdef HW_HELLEN_UAEFI121
98 // coil control plug pin A
99
100 // tan wire with a black trace - "HEI B", plug pin B (we use yellow)
101 ignOverride->pin = Gpio::MM100_IGN2; // 12a Coil 2
102 // tach plug pin C
103 engineConfiguration->triggerInputPins[0] = Gpio::MM100_IN_D2; // 35a HALL2 red wire
107#endif // HW_HELLEN_UAEFI121
108
109#ifdef HW_HELLEN_SUPER_UAEFI
110 engineConfiguration->triggerInputPins[0] = Gpio::MM100_IN_D2; // HALL2
112#endif // HW_HELLEN_SUPER_UAEFI
113
114#if HW_PROTEUS
115 // tan wire with a black trace - "HEI B", plug pin B
116 ignOverride->pin = Gpio::PROTEUS_IGN_12;
118 // reminder about D101
119 engineConfiguration->injectionPins[0] = Gpio::PROTEUS_LS_14; // #1
120 // reminder about D104
121 engineConfiguration->injectionPins[3] = Gpio::PROTEUS_LS_15; // #4
122
123 // wow high side relay control on MEFI1 ELECTRONIC-FUEL-INJECTION-MEFI-1-2-5.7L-350CID-8.2L-502CID.pdf page 46
124 engineConfiguration->fuelPumpPin = Gpio::PROTEUS_HS_1;
125 // low side on MEFI3 ELECTRONIC-FUEL-INJECTION-MEFI-3-5.7L-350CID-8.2L-502CID.pdf page 487
126
128#endif // HW_PROTEUS
129 engineConfiguration->mainRelayPin = Gpio::Unassigned; // vehicle controls main relay
130
131 // for instance IWP069
133
134 setStepperHw();
135
136 // 8 cylinders one coil HEI trigger
141 // Proteus Digital 1 is Tach input "HEI R", plug pin C
142
143 engineConfiguration->map.sensor.type = MT_GM_1_BAR;
144}
@ 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 251 of file gm_sbc.cpp.

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

Referenced by applyEngineType().

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

◆ setStepperHw()

void setStepperHw ( )

Definition at line 15 of file gm_sbc.cpp.

15 {
20
21 for (size_t i = 0;i<ETB_COUNT;i++) {
23 }
24
25 setPPSInputs(EFI_ADC_NONE, EFI_ADC_NONE);
26
27#ifdef HW_HELLEN_8CHAN
30#endif // HW_HELLEN_8CHAN
31
32#ifdef HW_HELLEN_UAEFI
35#endif // HW_HELLEN_UAEFI
36
37#ifdef HW_PROTEUS
38//Coil 1 - Pin 15 DC2 positive Pin A Toyota iac pin 4
39//Coil 1 - Pin 8 DC2 negative Pin B Toyota iac pin 6
40//Coil 2 - Pin 7 DC1 positive Pin C Toyota iac pin 1
41//Coil 2 - Pin 6 DC1 negative Pin D Toyota iac pin 3
42
43 // coil #1 = proteus pin 15 (DC2 positive) to BL pin "A", pin B to pin 8 (DC2 negative)
44 // PWM pin
46 // DIR pin
48 // Disable pin
50 // Unused
52
53 // coil #2 - proteus pin 7 (DC1 positive) to AH pin "D", pin C to pin 6 (DC1 negative)
54 // PWM pin
56 // DIR pin
58 // Disable pin
60 // Unused
62
63#endif // HW_PROTEUS
64}
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2)
void set8chanDefaultETBPins()
void setUaefiDefaultETBPins()

Referenced by handleCommandX14(), and setGmSbc().

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

Go to the source code of this file.