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
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2018-01-31 18:27:45 -08:00
|
|
|
*/
|
|
|
|
|
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-09-06 19:31:23 -07:00
|
|
|
/**
|
2019-09-15 07:04:24 -07:00
|
|
|
* 1994, 1995 NA
|
|
|
|
* Note that ODB-II car have different wiring!
|
|
|
|
*
|
|
|
|
* https://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Miata_1994
|
|
|
|
*
|
2018-09-06 19:31:23 -07:00
|
|
|
* See also setMiataNA_1_6_Configuration
|
|
|
|
*/
|
2021-11-16 01:15:29 -08:00
|
|
|
void setMazdaMiataNA8Configuration() {
|
|
|
|
setMiataNA6_MAP_Frankenso();
|
2018-09-06 19:31:23 -07:00
|
|
|
|
|
|
|
// 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;
|
2021-11-17 00:54:21 -08:00
|
|
|
strcpy(engineConfiguration->engineMake, ENGINE_MAKE_MAZDA);
|
|
|
|
strcpy(engineConfiguration->engineCode, "NA8");
|
2018-09-06 19:31:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
|
|
|
|
|
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->injectionPins[0] = Gpio::D3; // #1 pin 3U
|
|
|
|
engineConfiguration->injectionPins[1] = Gpio::E2; // #2 pin 3V
|
|
|
|
engineConfiguration->injectionPins[2] = Gpio::B8; // #3 pin 3Y
|
|
|
|
engineConfiguration->injectionPins[3] = Gpio::B7; // #4 pin 3Z
|
2018-09-06 19:31:23 -07:00
|
|
|
|
|
|
|
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
2018-01-31 18:36:41 -08:00
|
|
|
}
|
2018-01-31 18:27:45 -08:00
|
|
|
|
|
|
|
|
|
|
|
|