rusefi/firmware/config/engines/mazda_miata_vvt.cpp

48 lines
1.2 KiB
C++
Raw Normal View History

2016-10-04 10:03:25 -07:00
/*
* @file mazda_miata_vvt.cpp
*
2016-10-04 12:02:36 -07:00
* set_engine_type 47
*
2016-10-04 10:03:25 -07:00
* @date Oct 4, 2016
* @author Andrey Belomutskiy, (c) 2012-2016
* http://rusefi.com/forum/viewtopic.php?f=3&t=1095
*/
#include "mazda_miata_vvt.h"
2016-10-04 12:02:36 -07:00
#include "custom_engine.h"
2016-10-04 10:03:25 -07:00
2016-10-04 11:00:58 -07:00
EXTERN_ENGINE;
void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
2016-10-04 12:02:36 -07:00
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F);
engineConfiguration->hasMapSensor = true;
2016-11-13 20:02:33 -08:00
engineConfiguration->trigger.type = TT_MIATA_VVT;
2016-11-14 20:01:47 -08:00
setOperationMode(engineConfiguration, FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR);
2016-10-04 12:02:36 -07:00
engineConfiguration->specs.displacement = 1.8;
2016-11-12 21:01:42 -08:00
boardConfiguration->triggerInputPins[0] = GPIOA_5;
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
engineConfiguration->camInput = GPIOC_6;
2016-11-14 20:01:47 -08:00
// set vvt_mode 3
engineConfiguration->vvtMode = MIATA_NB2;
2016-11-12 21:01:42 -08:00
boardConfiguration->vvtCamSensorUseRise = true;
2016-11-16 17:02:40 -08:00
engineConfiguration->vvtOffset = -385;
2016-11-12 21:01:42 -08:00
2016-11-14 20:01:47 -08:00
boardConfiguration->nb2ratioFrom = 0.75;
boardConfiguration->nb2ratioTo = 1.25;
2016-11-12 21:01:42 -08:00
2016-10-04 12:02:36 -07:00
engineConfiguration->specs.cylindersCount = 4;
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
2016-10-04 11:00:58 -07:00
2016-10-09 10:04:53 -07:00
engineConfiguration->injectionMode = IM_SEQUENTIAL;
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
2016-10-04 11:00:58 -07:00
}
2016-10-04 10:03:25 -07:00