mirror of https://github.com/FOME-Tech/fome-fw.git
MRE is getting closer!
This commit is contained in:
parent
ddec08b139
commit
efb5e0377a
|
@ -767,8 +767,8 @@ case ROVER_V8:
|
||||||
return "ROVER_V8";
|
return "ROVER_V8";
|
||||||
case SACHS:
|
case SACHS:
|
||||||
return "SACHS";
|
return "SACHS";
|
||||||
case SATURN_ION_2004:
|
case MRE_MIATA_NA6:
|
||||||
return "SATURN_ION_2004";
|
return "MRE_MIATA_NA6";
|
||||||
case SUBARUEJ20G_DEFAULTS:
|
case SUBARUEJ20G_DEFAULTS:
|
||||||
return "SUBARUEJ20G_DEFAULTS";
|
return "SUBARUEJ20G_DEFAULTS";
|
||||||
case SUBARU_2003_WRX:
|
case SUBARU_2003_WRX:
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
||||||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||||
break;
|
break;
|
||||||
case SATURN_ION_2004:
|
case MRE_MIATA_NA6:
|
||||||
case ACURA_RSX:
|
case ACURA_RSX:
|
||||||
case MINI_COOPER_R50:
|
case MINI_COOPER_R50:
|
||||||
case GM_2_2:
|
case GM_2_2:
|
||||||
|
|
|
@ -75,7 +75,7 @@ typedef enum {
|
||||||
|
|
||||||
MAZDA_323 = 11,
|
MAZDA_323 = 11,
|
||||||
|
|
||||||
SATURN_ION_2004 = 12,
|
MRE_MIATA_NA6 = 12,
|
||||||
|
|
||||||
MINI_COOPER_R50 = 13,
|
MINI_COOPER_R50 = 13,
|
||||||
|
|
||||||
|
|
|
@ -157,8 +157,8 @@ const char* getConfigurationName(engine_type_e engineType) {
|
||||||
return "MiataNB1";
|
return "MiataNB1";
|
||||||
case MAZDA_323:
|
case MAZDA_323:
|
||||||
return "M323";
|
return "M323";
|
||||||
case SATURN_ION_2004:
|
case MRE_MIATA_NA6:
|
||||||
return "Saturn Ion";
|
return "MRE Miata 1.6";
|
||||||
case MINI_COOPER_R50:
|
case MINI_COOPER_R50:
|
||||||
return "CoopR50";
|
return "CoopR50";
|
||||||
case FORD_ESCORT_GT:
|
case FORD_ESCORT_GT:
|
||||||
|
@ -649,6 +649,12 @@ static void setPotSpi(int spi) {
|
||||||
boardConfiguration->digitalPotentiometerSpiDevice = (spi_device_e) spi;
|
boardConfiguration->digitalPotentiometerSpiDevice = (spi_device_e) spi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For example:
|
||||||
|
* set_ignition_pin 1 PD7
|
||||||
|
* todo: this method counts index from 1 while at least 'set_trigger_input_pin' counts from 0.
|
||||||
|
* todo: make things consistent
|
||||||
|
*/
|
||||||
static void setIgnitionPin(const char *indexStr, const char *pinName) {
|
static void setIgnitionPin(const char *indexStr, const char *pinName) {
|
||||||
int index = atoi(indexStr) - 1; // convert from human index into software index
|
int index = atoi(indexStr) - 1; // convert from human index into software index
|
||||||
if (index < 0 || index >= IGNITION_PIN_COUNT)
|
if (index < 0 || index >= IGNITION_PIN_COUNT)
|
||||||
|
@ -711,6 +717,12 @@ static void setInjectionPin(const char *indexStr, const char *pinName) {
|
||||||
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For example:
|
||||||
|
* set_trigger_input_pin 0 PA5
|
||||||
|
* todo: this method counts index from 0 while at least 'set_ignition_pin' counts from 1.
|
||||||
|
* todo: make things consistent
|
||||||
|
*/
|
||||||
static void setTriggerInputPin(const char *indexStr, const char *pinName) {
|
static void setTriggerInputPin(const char *indexStr, const char *pinName) {
|
||||||
int index = atoi(indexStr);
|
int index = atoi(indexStr);
|
||||||
if (index < 0 || index > 2)
|
if (index < 0 || index > 2)
|
||||||
|
|
Loading…
Reference in New Issue