2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file ford_1995_inline_6.cpp
|
|
|
|
* @brief Default engine configuration for a 1995 Ford inline 6 engine
|
|
|
|
*
|
|
|
|
* http://rusefi.com/forum/viewtopic.php?f=3&t=469
|
|
|
|
*
|
|
|
|
* FORD_INLINE_6_1995 = 7
|
2017-01-06 07:04:41 -08:00
|
|
|
* set engine_type 7
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
|
|
|
* @date Feb 12, 2014
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "ford_1995_inline_6.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Default values for persistent properties
|
|
|
|
*/
|
2021-11-16 01:15:29 -08:00
|
|
|
void setFordInline6() {
|
|
|
|
setDefaultFrankensoConfiguration();
|
2019-11-03 16:36:56 -08:00
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->specs.cylindersCount = 6;
|
|
|
|
|
2022-04-02 21:43:28 -07:00
|
|
|
setCamOperationMode(engineConfiguration);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
2016-07-20 16:04:27 -07:00
|
|
|
engineConfiguration->specs.firingOrder = FO_1_5_3_6_2_4;
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
|
|
|
engineConfiguration->injectionMode = IM_BATCH;
|
2016-01-03 07:01:32 -08:00
|
|
|
engineConfiguration->twoWireBatchInjection = true;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-04-02 19:55:44 -07:00
|
|
|
* 0.5ms dwell time just to be sure it would fit within camshaft revolution, dwell is not controlled by us anyway
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
2021-11-16 01:15:29 -08:00
|
|
|
setConstantDwell(0.5);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* We treat the trigger as 6/0 toothed wheel
|
|
|
|
*/
|
2022-04-02 19:55:44 -07:00
|
|
|
engineConfiguration->skippedWheelOnCam = true;
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
|
|
|
engineConfiguration->trigger.customTotalToothCount = 6;
|
|
|
|
engineConfiguration->trigger.customSkippedToothCount = 0;
|
|
|
|
|
|
|
|
engineConfiguration->globalTriggerAngleOffset = 0;
|
2021-12-16 16:51:46 -08:00
|
|
|
// there is a unit test which cares about this value!
|
|
|
|
// todo: remove value and adjust unit test
|
|
|
|
engineConfiguration->extraInjectionOffset = 207.269999;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-10-02 18:00:10 -07:00
|
|
|
engineConfiguration->clt.config = {-10, 60, 120, 160310, 7700, 1180, 2700};
|
|
|
|
engineConfiguration->iat.config = {-10, 60, 120, 160310, 7700, 1180, 2700};
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
// 12ch analog board pinout:
|
|
|
|
// input channel 3 is PA7, that's ADC7
|
|
|
|
// input channel 5 is PA4, that's ADC4
|
|
|
|
// input channel 6 is PA3, that's ADC3
|
|
|
|
// input channel 7 is PA2, that's ADC2
|
|
|
|
// input channel 8 is PA1, that's ADC1
|
|
|
|
// input channel 9 is PA0, that's ADC0
|
|
|
|
// input channel 10 is PC3, that's ADC13
|
|
|
|
// input channel 12 is PC1, that's ADC11
|
|
|
|
|
2019-06-30 11:28:47 -07:00
|
|
|
engineConfiguration->tps1_1AdcChannel = EFI_ADC_4;
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->iat.adcChannel = EFI_ADC_2;
|
|
|
|
engineConfiguration->clt.adcChannel = EFI_ADC_1;
|
|
|
|
engineConfiguration->afr.hwChannel = EFI_ADC_11;
|
|
|
|
|
|
|
|
engineConfiguration->map.sensor.type = MT_MPX4250;
|
|
|
|
engineConfiguration->map.sensor.hwChannel = EFI_ADC_15;
|
|
|
|
engineConfiguration->baroSensor.type = MT_MPX4250;
|
|
|
|
engineConfiguration->baroSensor.hwChannel = EFI_ADC_7;
|
|
|
|
|
|
|
|
// 6 channel output board
|
|
|
|
// output 1 is PB9
|
|
|
|
// output 3 is PE3
|
|
|
|
// output 5 is PC13
|
|
|
|
// output 6 is PC15
|
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->fuelPumpPin = GPIOC_13;
|
|
|
|
engineConfiguration->injectionPins[0] = GPIOB_9;
|
|
|
|
engineConfiguration->injectionPins[1] = GPIOE_3;
|
|
|
|
engineConfiguration->ignitionPins[0] = GPIOC_15;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->injectionPins[2] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
engineConfiguration->tpsMin = convertVoltageTo10bitADC(1.250);
|
|
|
|
engineConfiguration->tpsMax = convertVoltageTo10bitADC(4.538);
|
|
|
|
|
|
|
|
// engineConfiguration->vbattAdcChannel = 0; //
|
|
|
|
engineConfiguration->mafAdcChannel = EFI_ADC_1;
|
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->triggerInputPins[0] = GPIOA_8;
|
|
|
|
engineConfiguration->triggerInputPins[1] = GPIOA_5;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|