2015-12-30 13:02:18 -08:00
|
|
|
/*
|
|
|
|
* @file toyota_jzs147.cpp
|
|
|
|
*
|
|
|
|
* toyota aristo
|
|
|
|
* https://en.wikipedia.org/wiki/Lexus_GS
|
|
|
|
* http://rusefi.com/forum/viewtopic.php?f=15&t=969
|
|
|
|
*
|
2016-01-02 12:02:37 -08:00
|
|
|
* http://wilbo666.pbworks.com/w/page/37134472/2JZ-GTE%20JZS147%20Aristo%20Engine%20Wiring
|
|
|
|
*
|
2015-12-30 13:02:18 -08:00
|
|
|
* set_engine_type 38
|
|
|
|
*
|
|
|
|
* @date Dec 30, 2015
|
2015-12-31 13:02:30 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2016
|
2015-12-30 13:02:18 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "toyota_jzs147.h"
|
2016-01-23 15:01:40 -08:00
|
|
|
#include "custom_engine.h"
|
2015-12-30 13:02:18 -08:00
|
|
|
|
|
|
|
EXTERN_ENGINE;
|
|
|
|
|
|
|
|
void setToyota_jzs147EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
2016-01-23 15:01:40 -08:00
|
|
|
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F); // default pinout
|
2015-12-30 13:02:18 -08:00
|
|
|
|
2016-01-26 09:01:28 -08:00
|
|
|
engineConfiguration->isCanEnabled = true;
|
|
|
|
|
2015-12-30 13:02:18 -08:00
|
|
|
engineConfiguration->specs.displacement = 3.0;
|
|
|
|
engineConfiguration->specs.cylindersCount = 6;
|
|
|
|
engineConfiguration->specs.firingOrder = FO_1_THEN_5_THEN_3_THEN_6_THEN_2_THEN_4;
|
2016-06-11 09:02:00 -07:00
|
|
|
// set_ignition_mode 1
|
2016-06-13 17:01:47 -07:00
|
|
|
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
|
2015-12-30 13:02:18 -08:00
|
|
|
|
|
|
|
setOperationMode(engineConfiguration, FOUR_STROKE_CAM_SENSOR);
|
2016-06-13 17:01:47 -07:00
|
|
|
engineConfiguration->trigger.type = TT_2JZ_1_12;
|
|
|
|
|
|
|
|
//// temporary while I am fixing trigger bug
|
|
|
|
// setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
|
|
|
// //set_trigger_type 16
|
|
|
|
// engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
|
|
|
// engineConfiguration->trigger.customTotalToothCount = 36;
|
|
|
|
// engineConfiguration->trigger.customSkippedToothCount = 2;
|
|
|
|
//
|
|
|
|
// engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
|
|
|
// engineConfiguration->twoWireBatchIgnition = true;
|
|
|
|
//
|
|
|
|
// engineConfiguration->crankingInjectionMode = IM_BATCH;
|
|
|
|
// engineConfiguration->injectionMode = IM_BATCH;
|
|
|
|
// engineConfiguration->twoWireBatchInjection = true;
|
2016-06-11 20:02:58 -07:00
|
|
|
|
2016-06-14 09:01:49 -07:00
|
|
|
// boardConfiguration->triggerInputPins[0] = GPIOA_5;
|
|
|
|
// boardConfiguration->triggerInputPins[1] = GPIOC_6;
|
2016-06-11 20:02:58 -07:00
|
|
|
|
2015-12-30 13:02:18 -08:00
|
|
|
|
2016-01-23 15:01:40 -08:00
|
|
|
boardConfiguration->ignitionPins[0] = GPIOE_14;
|
|
|
|
boardConfiguration->ignitionPins[1] = GPIOC_7;
|
|
|
|
boardConfiguration->ignitionPins[2] = GPIOC_9;
|
|
|
|
boardConfiguration->ignitionPins[3] = GPIOE_10;
|
2016-06-11 09:02:00 -07:00
|
|
|
boardConfiguration->ignitionPins[4] = GPIOE_8;
|
|
|
|
boardConfiguration->ignitionPins[5] = GPIOE_12;
|
|
|
|
|
|
|
|
|
|
|
|
boardConfiguration->injectionPins[0] = GPIOB_9; // #1
|
|
|
|
boardConfiguration->injectionPins[1] = GPIOE_2; // #2
|
|
|
|
boardConfiguration->injectionPins[2] = GPIOB_8; // #3
|
|
|
|
boardConfiguration->injectionPins[3] = GPIOB_7; // #4
|
|
|
|
boardConfiguration->injectionPins[4] = GPIOE_3; // #5
|
|
|
|
boardConfiguration->injectionPins[5] = GPIOE_4; // #6
|
|
|
|
|
|
|
|
boardConfiguration->fuelPumpPin = GPIO_UNASSIGNED;
|
2016-01-23 15:01:40 -08:00
|
|
|
|
2016-06-11 20:02:58 -07:00
|
|
|
// chartsize 450
|
|
|
|
engineConfiguration->engineChartSize = 450;
|
|
|
|
|
|
|
|
// engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
2016-06-13 17:01:47 -07:00
|
|
|
boardConfiguration->isSdCardEnabled = false;
|
|
|
|
|
2015-12-30 13:02:18 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|