2015-10-16 12:02:24 -07:00
|
|
|
/*
|
|
|
|
* @file chevrolet_camaro_4.cpp
|
|
|
|
*
|
2018-10-28 14:11:37 -07:00
|
|
|
* CAMARO_4
|
2017-01-06 07:04:41 -08:00
|
|
|
* set engine_type 35
|
2015-10-16 13:01:21 -07:00
|
|
|
*
|
2015-10-16 12:02:24 -07:00
|
|
|
* @date Oct 16, 2015
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-10-16 12:02:24 -07:00
|
|
|
*/
|
|
|
|
|
2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2015-10-16 12:02:24 -07:00
|
|
|
#include "chevrolet_camaro_4.h"
|
2017-01-28 12:05:25 -08:00
|
|
|
#include "custom_engine.h"
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void setCamaro4() {
|
|
|
|
setFrankensoConfiguration();
|
2017-01-28 12:05:25 -08:00
|
|
|
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
setAlgorithm(LM_SPEED_DENSITY);
|
2015-10-16 12:02:24 -07:00
|
|
|
|
2015-10-16 13:01:21 -07:00
|
|
|
engineConfiguration->specs.displacement = 5.7;
|
|
|
|
engineConfiguration->specs.cylindersCount = 8;
|
2021-11-17 00:54:21 -08:00
|
|
|
strcpy(engineConfiguration->engineMake, ENGINE_MAKE_GM);
|
2015-10-16 13:01:21 -07:00
|
|
|
|
2016-05-27 20:02:16 -07:00
|
|
|
engineConfiguration->specs.firingOrder = FO_1_8_7_2_6_5_4_3;
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->triggerInputPins[0] = Gpio::A5;
|
|
|
|
engineConfiguration->triggerInputPins[1] = Gpio::C6;
|
2016-06-09 18:02:10 -07:00
|
|
|
|
2016-06-10 22:02:20 -07:00
|
|
|
engineConfiguration->injectionMode = IM_BATCH;
|
|
|
|
engineConfiguration->twoWireBatchInjection = true;
|
2017-01-06 06:03:33 -08:00
|
|
|
// set ignition_mode 2
|
2016-06-06 21:02:45 -07:00
|
|
|
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
2016-05-27 20:02:16 -07:00
|
|
|
|
2022-04-02 23:21:37 -07:00
|
|
|
setCrankOperationMode();
|
2022-05-06 05:25:44 -07:00
|
|
|
engineConfiguration->trigger.type = TT_GM_24x;
|
2016-05-27 20:02:16 -07:00
|
|
|
|
2016-05-27 19:02:56 -07:00
|
|
|
engineConfiguration->map.sensor.hwChannel = EFI_ADC_0; // PA0
|
|
|
|
|
|
|
|
engineConfiguration->mafAdcChannel = EFI_ADC_NONE;
|
2016-12-17 06:02:59 -08:00
|
|
|
|
2016-05-27 19:02:56 -07:00
|
|
|
|
2019-06-30 11:28:47 -07:00
|
|
|
engineConfiguration->tps1_1AdcChannel = EFI_ADC_2;
|
2016-05-27 21:01:41 -07:00
|
|
|
|
2016-06-09 18:02:10 -07:00
|
|
|
// todo: move this into trigger definition
|
2019-10-05 05:27:30 -07:00
|
|
|
// set global_trigger_offset_angle 50
|
|
|
|
engineConfiguration->globalTriggerAngleOffset = 50;
|
2016-06-09 18:02:10 -07:00
|
|
|
|
2016-06-10 22:02:20 -07:00
|
|
|
engineConfiguration->iat.adcChannel = EFI_ADC_11;
|
|
|
|
|
|
|
|
engineConfiguration->clt.adcChannel = EFI_ADC_12;
|
|
|
|
engineConfiguration->clt.config.bias_resistor = 2700;
|
|
|
|
|
|
|
|
engineConfiguration->vbattAdcChannel = EFI_ADC_14;
|
|
|
|
|
|
|
|
engineConfiguration->afr.hwChannel = EFI_ADC_13;
|
2016-12-17 06:02:59 -08:00
|
|
|
|
2016-06-10 22:02:20 -07:00
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->idle.solenoidPin = Gpio::Unassigned;
|
|
|
|
engineConfiguration->fuelPumpPin = Gpio::Unassigned;
|
2017-01-28 12:05:25 -08:00
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->injectionPins[0] = Gpio::E6;
|
|
|
|
engineConfiguration->injectionPins[1] = Gpio::E5;
|
|
|
|
engineConfiguration->injectionPins[2] = Gpio::D7;
|
|
|
|
engineConfiguration->injectionPins[3] = Gpio::C13;
|
|
|
|
engineConfiguration->injectionPins[4] = Gpio::E3;
|
|
|
|
engineConfiguration->injectionPins[5] = Gpio::E4;
|
|
|
|
engineConfiguration->injectionPins[6] = Gpio::D3;
|
|
|
|
engineConfiguration->injectionPins[7] = Gpio::E2;
|
2016-06-10 22:02:20 -07:00
|
|
|
|
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->ignitionPins[0] = Gpio::C9;
|
|
|
|
engineConfiguration->ignitionPins[1] = Gpio::C7;
|
|
|
|
engineConfiguration->ignitionPins[2] = Gpio::E14;
|
|
|
|
engineConfiguration->ignitionPins[3] = Gpio::E12;
|
|
|
|
engineConfiguration->ignitionPins[4] = Gpio::E10;
|
|
|
|
engineConfiguration->ignitionPins[5] = Gpio::E8;
|
|
|
|
engineConfiguration->ignitionPins[6] = Gpio::D9;
|
|
|
|
engineConfiguration->ignitionPins[7] = Gpio::D8;
|
2016-06-10 22:02:20 -07:00
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->fuelPumpPin = Gpio::B8;
|
|
|
|
engineConfiguration->fanPin = Gpio::Unassigned;
|
|
|
|
engineConfiguration->mainRelayPin = Gpio::D5;
|
2015-10-16 12:02:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|