This commit is contained in:
rusefillc 2022-10-25 23:18:41 -04:00
parent 6043795c62
commit 3c60333180
4 changed files with 41 additions and 15 deletions

View File

@ -13,7 +13,7 @@
#include "pch.h"
#include "custom_engine.h"
#include "hellen_meta.h"
#include "defaults.h"
#include "gm_ls_4.h"
static void setInjectorPins() {
engineConfiguration->injectionPins[0] = H144_LS_1;
@ -142,11 +142,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
engineConfiguration->invertPrimaryTriggerSignal = true;
engineConfiguration->globalTriggerAngleOffset = 86;
engineConfiguration->fuelReferencePressure = 400; // 400 kPa, 58 psi
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
engineConfiguration->injector.flow = 440;
engineConfiguration->boostControlPin = H144_OUT_PWM5;
engineConfiguration->brakePedalPin = H144_IN_RES2;
@ -162,13 +158,7 @@ void setBoardDefaultConfiguration() {
// "required" hardware is done - set some reasonable defaults
setupDefaultSensorInputs();
engineConfiguration->specs.cylindersCount = 8;
setLeftRightBanksNeedBetterName();
engineConfiguration->specs.firingOrder = FO_1_8_7_2_6_5_4_3;
engineConfiguration->specs.displacement = 6.2;
engineConfiguration->tChargeAirIncrLimit = 5;
engineConfiguration->tChargeAirDecrLimit = 15;
setGmLs4();
engineConfiguration->enableSoftwareKnock = true;
@ -185,9 +175,6 @@ void setBoardDefaultConfiguration() {
engineConfiguration->throttlePedalSecondaryUpVoltage = 5.0;
engineConfiguration->throttlePedalSecondaryWOTVoltage = 0.0;
engineConfiguration->useETBforIdleControl = true;
engineConfiguration->etbIdleThrottleRange = 15;
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
// would not hurt just in case no cam
engineConfiguration->twoWireBatchInjection = true;

View File

@ -13,6 +13,7 @@ ENGINES_SRC_CPP = $(PROJECT_DIR)/config/engines/ford_aspire.cpp \
$(PROJECT_DIR)/config/engines/citroenBerlingoTU3JP.cpp \
$(PROJECT_DIR)/config/engines/dodge_neon.cpp \
$(PROJECT_DIR)/config/engines/ford_1995_inline_6.cpp \
$(PROJECT_DIR)/config/engines/gm_ls_4.cpp \
$(PROJECT_DIR)/config/engines/nissan_primera.cpp \
$(PROJECT_DIR)/config/engines/nissan_vq.cpp \
$(PROJECT_DIR)/config/engines/harley.cpp \

View File

@ -0,0 +1,26 @@
/*
* gm_ls_4.cpp
*
*/
#include "gm_ls_4.h"
#include "defaults.h"
void setGmLs4() {
engineConfiguration->globalTriggerAngleOffset = 86;
engineConfiguration->fuelReferencePressure = 400; // 400 kPa, 58 psi
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
engineConfiguration->injector.flow = 440;
engineConfiguration->specs.cylindersCount = 8;
setLeftRightBanksNeedBetterName();
engineConfiguration->specs.firingOrder = FO_1_8_7_2_6_5_4_3;
engineConfiguration->specs.displacement = 6.2;
engineConfiguration->useETBforIdleControl = true;
engineConfiguration->etbIdleThrottleRange = 15;
engineConfiguration->tChargeAirIncrLimit = 5;
engineConfiguration->tChargeAirDecrLimit = 15;
}

View File

@ -0,0 +1,12 @@
/*
* gm_ls_4.h
*
* Created on: 25 îêò. 2022 ã.
* Author: Huge
*/
#pragma once
#include "engine_configuration.h"
void setGmLs4();