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
|
|
|
|
2019-05-03 15:41:43 -07:00
|
|
|
EXTERN_CONFIG;
|
2018-01-31 18:57:04 -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
|
|
|
|
*/
|
2019-05-03 15:41:43 -07:00
|
|
|
void setMazdaMiataNA8Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
2019-09-15 07:04:24 -07:00
|
|
|
setMiataNA6_MAP_Frankenso(PASS_CONFIG_PARAMETER_SIGNATURE);
|
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;
|
2018-09-06 19:31:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
engineConfiguration->vbattDividerCoeff = 9.75;// ((float) (8.2 + 33)) / 8.2 * 2;
|
|
|
|
|
|
|
|
|
2019-01-09 21:56:08 -08:00
|
|
|
boardConfiguration->injectionPins[0] = GPIOD_3; // #1 pin 3U
|
|
|
|
boardConfiguration->injectionPins[1] = GPIOE_2; // #2 pin 3V
|
|
|
|
boardConfiguration->injectionPins[2] = GPIOB_8; // #3 pin 3Y
|
|
|
|
boardConfiguration->injectionPins[3] = GPIOB_7; // #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
|
|
|
|
|
|
|
|
|
|
|
|