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
|
2018-01-20 17:42:19 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2018-09-16 19:25:17 -07:00
|
|
|
#include "global.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "ford_1995_inline_6.h"
|
|
|
|
#include "engine_math.h"
|
|
|
|
#include "allsensors.h"
|
|
|
|
|
2019-04-12 19:10:57 -07:00
|
|
|
#if EFI_SUPPORT_1995_FORD_INLINE_6
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-05-03 15:41:43 -07:00
|
|
|
EXTERN_CONFIG;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Default values for persistent properties
|
|
|
|
*/
|
2019-05-03 15:41:43 -07:00
|
|
|
void setFordInline6(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->specs.cylindersCount = 6;
|
|
|
|
|
|
|
|
setOperationMode(engineConfiguration, FOUR_STROKE_CAM_SENSOR);
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 0.5ms dweel time just to be sure it would fit within camshaft revolution, dwell is not controlled by us anyway
|
|
|
|
*/
|
2019-05-03 15:41:43 -07:00
|
|
|
setConstantDwell(0.5 PASS_CONFIG_PARAMETER_SUFFIX);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* We treat the trigger as 6/0 toothed wheel
|
|
|
|
*/
|
|
|
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
|
|
|
engineConfiguration->trigger.customTotalToothCount = 6;
|
|
|
|
engineConfiguration->trigger.customSkippedToothCount = 0;
|
|
|
|
|
|
|
|
engineConfiguration->globalTriggerAngleOffset = 0;
|
|
|
|
engineConfiguration->ignitionOffset = 13;
|
2016-08-28 13:02:34 -07:00
|
|
|
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-01-09 21:56:08 -08:00
|
|
|
boardConfiguration->fuelPumpPin = GPIOC_13;
|
|
|
|
boardConfiguration->injectionPins[0] = GPIOB_9;
|
|
|
|
boardConfiguration->injectionPins[1] = GPIOE_3;
|
|
|
|
boardConfiguration->ignitionPins[0] = GPIOC_15;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-01-09 21:56:08 -08:00
|
|
|
boardConfiguration->injectionPins[2] = GPIO_UNASSIGNED;
|
|
|
|
boardConfiguration->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-01-09 21:56:08 -08:00
|
|
|
boardConfiguration->triggerInputPins[0] = GPIOA_8;
|
|
|
|
boardConfiguration->triggerInputPins[1] = GPIOA_5;
|
|
|
|
boardConfiguration->logicAnalyzerPins[0] = GPIOC_6;
|
|
|
|
boardConfiguration->logicAnalyzerPins[1] = GPIOE_5;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* EFI_SUPPORT_1995_FORD_INLINE_6 */
|