auto-sync
This commit is contained in:
parent
54a6d956e2
commit
6ea6d07b5a
|
@ -29,6 +29,12 @@ EXTERN_ENGINE;
|
||||||
|
|
||||||
static ign_Map3D_t advanceMap;
|
static ign_Map3D_t advanceMap;
|
||||||
|
|
||||||
|
static const float iatTimingRpmBins[IGN_LOAD_COUNT] = {880, 1260, 1640, 2020, 2400, 2780, 3000, 3380, 3760, 4140, 4520, 5000, 5700, 6500, 7200, 8000};
|
||||||
|
|
||||||
|
//880 1260 1640 2020 2400 2780 3000 3380 3760 4140 4520 5000 5700 6500 7200 8000
|
||||||
|
//static const ignition_table_t default_aspire_timing_table = {
|
||||||
|
|
||||||
|
|
||||||
float getBaseAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S) {
|
float getBaseAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S) {
|
||||||
if (cisnan(engineLoad)) {
|
if (cisnan(engineLoad)) {
|
||||||
warning(OBD_PCM_Processor_Fault, "NaN engine load");
|
warning(OBD_PCM_Processor_Fault, "NaN engine load");
|
||||||
|
@ -57,6 +63,11 @@ float getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S) {
|
||||||
return angle;
|
return angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setDefaultIatTimingCorrection(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
setTableBin2(config->ignitionIatCorrLoadBins, IGN_LOAD_COUNT, -40, 110, 1);
|
||||||
|
memcpy(config->ignitionIatCorrRpmBins, iatTimingRpmBins, sizeof(iatTimingRpmBins));
|
||||||
|
}
|
||||||
|
|
||||||
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_F) {
|
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
advanceMap.init(config->ignitionTable, config->ignitionLoadBins,
|
advanceMap.init(config->ignitionTable, config->ignitionLoadBins,
|
||||||
config->ignitionRpmBins);
|
config->ignitionRpmBins);
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
|
||||||
float getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S);
|
float getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S);
|
||||||
|
void setDefaultIatTimingCorrection(DECLARE_ENGINE_PARAMETER_F);
|
||||||
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_F);
|
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_F);
|
||||||
|
|
||||||
#endif /* ADVANCE_H_ */
|
#endif /* ADVANCE_H_ */
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "trigger_decoder.h"
|
#include "trigger_decoder.h"
|
||||||
#include "engine_math.h"
|
#include "engine_math.h"
|
||||||
#include "speed_density.h"
|
#include "speed_density.h"
|
||||||
|
#include "advance_map.h"
|
||||||
|
|
||||||
#include "custom_engine.h"
|
#include "custom_engine.h"
|
||||||
#include "acura_rsx.h"
|
#include "acura_rsx.h"
|
||||||
|
@ -225,6 +226,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
setMap(config->injectionPhase, -180);
|
setMap(config->injectionPhase, -180);
|
||||||
setRpmTableBin(config->injPhaseRpmBins, FUEL_RPM_COUNT);
|
setRpmTableBin(config->injPhaseRpmBins, FUEL_RPM_COUNT);
|
||||||
setFuelTablesLoadBin(10, 160 PASS_ENGINE_PARAMETER);
|
setFuelTablesLoadBin(10, 160 PASS_ENGINE_PARAMETER);
|
||||||
|
setDefaultIatTimingCorrection(PASS_ENGINE_PARAMETER_F);
|
||||||
|
|
||||||
setThermistorConfiguration(&engineConfiguration->clt, 0, 9500, 23.8889, 2100, 48.8889, 1000);
|
setThermistorConfiguration(&engineConfiguration->clt, 0, 9500, 23.8889, 2100, 48.8889, 1000);
|
||||||
engineConfiguration->clt.bias_resistor = 1500;
|
engineConfiguration->clt.bias_resistor = 1500;
|
||||||
|
|
|
@ -276,5 +276,5 @@ int getRusEfiVersion(void) {
|
||||||
return 1; // this is here to make the compiler happy about the unused array
|
return 1; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE[0] == 0)
|
if (UNUSED_CCM_SIZE[0] == 0)
|
||||||
return 1; // this is here to make the compiler happy about the unused array
|
return 1; // this is here to make the compiler happy about the unused array
|
||||||
return 20150405;
|
return 20150406;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,9 @@
|
||||||
) cheaper battery holder - through-hole (need to find out footprint)
|
) cheaper battery holder - through-hole (need to find out footprint)
|
||||||
) remove some/all EGT - expand prototyping area?
|
) remove some/all EGT - expand prototyping area?
|
||||||
) idle valve SMD diode?
|
) idle valve SMD diode?
|
||||||
|
) on schematics, rename INJ_xx to LOW_xx? "inj" is a bit confusing, it implies that PE6 is injector #1 while it is usually not the case
|
||||||
|
) set analog input values to match https://docs.google.com/spreadsheets/d/1LTvS7I-128Hft9uXHG1JrBxetVjGJDSBkySgVDQ6MGk/edit#gid=0
|
||||||
|
) remove 'REAR-DEFROSTER-SW' and etc from schematics
|
||||||
|
|
||||||
|
|
||||||
For honda add-on / rewiring board
|
For honda add-on / rewiring board
|
||||||
|
|
Loading…
Reference in New Issue