rusefi-1/firmware/config/engines/mazda_miata_na8.cpp

52 lines
1.1 KiB
C++
Raw Normal View History

2018-01-31 18:27:45 -08:00
/*
* @file mazda_miata_na8.cpp
*
* set engine_type 56
*
2018-09-06 19:31:23 -07:00
* MAZDA_MIATA_NA8
*
2018-01-31 18:27:45 -08:00
* @date Jan 31, 2018
* @author Andrey Belomutskiy, (c) 2012-2017
*/
2018-01-31 18:36:41 -08:00
#include "mazda_miata_na8.h"
2018-09-06 19:31:23 -07:00
#include "custom_engine.h"
#include "mazda_miata_1_6.h"
2018-01-31 18:36:41 -08:00
2018-01-31 18:57:04 -08:00
EXTERN_ENGINE;
2018-09-06 19:31:23 -07:00
/**
* See also setMiataNA_1_6_Configuration
*/
2018-01-31 18:57:04 -08:00
void setMazdaMiataNA8Configuration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
2018-09-06 19:31:23 -07:00
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
// blue jumper wire to W45 bottom jumper, not OEM
engineConfiguration->map.sensor.hwChannel = EFI_ADC_7;
/**
* http://miataturbo.wikidot.com/fuel-injectors
* 94-97 (tan) - #195500-2180
*/
engineConfiguration->injector.flow = 265;
2018-09-06 19:41:05 -07:00
engineConfiguration->specs.displacement = 1.839;
2018-09-06 19:31:23 -07:00
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
CONFIGB(injectionPins)[0] = GPIOD_3; // #1 pin 3U
CONFIGB(injectionPins)[1] = GPIOE_2; // #2 pin 3V
CONFIGB(injectionPins)[2] = GPIOB_8; // #3 pin 3Y
CONFIGB(injectionPins)[3] = GPIOB_7; // #4 pin 3Z
2018-09-06 19:31:23 -07:00
engineConfiguration->injectionMode = IM_SEQUENTIAL;
miataNAcommon(PASS_ENGINE_PARAMETER_SIGNATURE);
2018-01-31 18:36:41 -08:00
}
2018-01-31 18:27:45 -08:00