2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file mitsubishi.cpp
|
|
|
|
*
|
|
|
|
* MITSU_4G93 16
|
|
|
|
*
|
2017-01-06 07:04:41 -08:00
|
|
|
* set engine_type 16
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
|
|
|
* @date Aug 5, 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 "mitsubishi.h"
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void setMitsubishiConfiguration() {
|
|
|
|
setDefaultFrankensoConfiguration();
|
2019-11-03 16:36:56 -08:00
|
|
|
|
2017-02-22 18:13:04 -08:00
|
|
|
engineConfiguration->trigger.type = TT_MITSUBISHI; // same trigger as 4G63?
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
engineConfiguration->specs.cylindersCount = 4;
|
|
|
|
engineConfiguration->specs.displacement = 1.800;
|
|
|
|
|
2017-01-06 06:03:33 -08:00
|
|
|
// set ignition_mode 2
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
2016-07-20 16:04:27 -07:00
|
|
|
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2017-01-06 07:04:41 -08:00
|
|
|
// set global_trigger_offset_angle 671
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->globalTriggerAngleOffset = 671;
|
|
|
|
|
|
|
|
// set_cranking_rpm 550
|
|
|
|
engineConfiguration->cranking.rpm = 550;
|
2017-01-06 06:03:33 -08:00
|
|
|
// set cranking_timing_angle 715
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->crankingTimingAngle = -715;
|
|
|
|
|
|
|
|
// /**
|
|
|
|
// * 29150 Ohm @ 40C
|
|
|
|
// * 10160 Ohm @ 70C
|
|
|
|
// * 1270 Ohm @ 150C
|
|
|
|
// */
|
|
|
|
// setThermistorConfiguration(&engineConfiguration->clt, 40, 29150, 70, 10160, 150, 1270);
|
|
|
|
|
2019-10-02 18:00:10 -07:00
|
|
|
setCommonNTCSensor(&engineConfiguration->clt, 2700);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
// Frankenstein: low side - out #1: PC14
|
|
|
|
// Frankenstein: low side - out #2: PC15
|
|
|
|
// Frankenstein: low side - out #3: PE6
|
|
|
|
// Frankenstein: low side - out #4: PC13
|
|
|
|
// Frankenstein: low side - out #5: PE4
|
|
|
|
// Frankenstein: low side - out #6: PE5
|
|
|
|
// Frankenstein: low side - out #7: PE2
|
|
|
|
// Frankenstein: low side - out #8: PE3
|
|
|
|
// Frankenstein: low side - out #9: PE0
|
|
|
|
// Frankenstein: low side - out #10: PE1
|
|
|
|
// Frankenstein: low side - out #11: PB8
|
|
|
|
// Frankenstein: low side - out #12: PB9
|
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->injectionPins[0] = GPIOB_9; // Frankenstein: low side - out #12
|
|
|
|
engineConfiguration->injectionPins[1] = GPIOB_8; // Frankenstein: low side - out #11
|
|
|
|
engineConfiguration->injectionPins[2] = GPIOE_3; // Frankenstein: low side - out #8
|
|
|
|
engineConfiguration->injectionPins[3] = GPIOE_5; // Frankenstein: low side - out #6
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
// Frankenstein: high side #1: PE8
|
|
|
|
// Frankenstein: high side #2: PE10
|
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->ignitionPins[0] = GPIOE_8; // Frankenstein: high side #1
|
|
|
|
engineConfiguration->ignitionPins[1] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->ignitionPins[2] = GPIOE_10; // // Frankenstein: high side #2
|
|
|
|
engineConfiguration->ignitionPins[3] = GPIO_UNASSIGNED;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
engineConfiguration->HD44780width = 20;
|
|
|
|
engineConfiguration->HD44780height = 4;
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
setEgoSensor(ES_Innovate_MTX_L);
|
2021-11-14 04:24:50 -08:00
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|