auto-sync
This commit is contained in:
parent
ba810f8160
commit
67780aa759
|
@ -256,6 +256,11 @@ void setFordEscortGt(engine_configuration_s *engineConfiguration) {
|
|||
boardConfiguration->triggerInputPins[0] = GPIOC_6;
|
||||
boardConfiguration->triggerInputPins[1] = GPIOA_5; // 2E White CKP
|
||||
|
||||
// Denso 195500-2180
|
||||
engineConfiguration->injector.flow = 265;
|
||||
|
||||
engineConfiguration->hasBaroSensor = false;
|
||||
engineConfiguration->hasMapSensor = true;
|
||||
engineConfiguration->map.sensor.type = MT_DENSO183;
|
||||
|
||||
// set_global_trigger_offset_angle 659
|
||||
|
|
|
@ -14,6 +14,7 @@ typedef enum {
|
|||
LL_ALGORITHM,
|
||||
LL_INJECTION,
|
||||
LL_IGNITION,
|
||||
LL_ING_FLOW,
|
||||
|
||||
LL_RPM,
|
||||
LL_TRIGGER_ERRORS,
|
||||
|
@ -21,10 +22,13 @@ typedef enum {
|
|||
|
||||
LL_CLT_TEMPERATURE,
|
||||
LL_IAT_TEMPERATURE,
|
||||
LL_AFR,
|
||||
LL_TPS,
|
||||
LL_VBATT,
|
||||
LL_MAF,
|
||||
LL_MAP,
|
||||
LL_MAF_V,
|
||||
LL_MAF_KG_HR,
|
||||
LL_EGO,
|
||||
LL_BARO,
|
||||
|
||||
|
|
|
@ -45,7 +45,10 @@ static MenuItem miIat(&miSensors, LL_IAT_TEMPERATURE);
|
|||
static MenuItem miTps(&miSensors, LL_TPS);
|
||||
static MenuItem miVBatt(&miSensors, LL_VBATT);
|
||||
static MenuItem miMap(&miSensors, LL_MAP);
|
||||
static MenuItem miAfr(&miSensors, LL_AFR);
|
||||
static MenuItem miBaro(&miSensors, LL_BARO);
|
||||
static MenuItem miMapV(&miSensors, LL_MAF_V);
|
||||
static MenuItem miMapKgHr(&miSensors, LL_MAF_KG_HR);
|
||||
|
||||
static MenuItem miStopEngine(&miBench, "stop engine", stopEngine);
|
||||
static MenuItem miTestFan(&miBench, "test fan", fanBench);
|
||||
|
@ -64,6 +67,7 @@ static MenuItem miConfig(&miAbout, LL_CONFIG);
|
|||
static MenuItem miAlgo(&miAbout, LL_ALGORITHM);
|
||||
static MenuItem miInjection(&miAbout, LL_INJECTION);
|
||||
static MenuItem miIgnition(&miAbout, LL_IGNITION);
|
||||
static MenuItem miInjFlow(&miAbout, LL_ING_FLOW);
|
||||
|
||||
#define DISP_LINES (engineConfiguration->HD44780height - 1)
|
||||
|
||||
|
@ -208,6 +212,9 @@ static void showLine(lcd_line_e line) {
|
|||
case LL_INJECTION:
|
||||
lcdPrintf(getInjection_mode_e(engineConfiguration->injectionMode));
|
||||
return;
|
||||
case LL_ING_FLOW:
|
||||
lcdPrintf("Inj %fcc", engineConfiguration->injector.flow);
|
||||
return;
|
||||
case LL_IGNITION:
|
||||
lcdPrintf(getIgnition_mode_e(engineConfiguration->ignitionMode));
|
||||
return;
|
||||
|
@ -219,16 +226,37 @@ static void showLine(lcd_line_e line) {
|
|||
return;
|
||||
case LL_BARO:
|
||||
if (engineConfiguration->hasBaroSensor) {
|
||||
lcdPrintf("Baro: none");
|
||||
} else {
|
||||
lcdPrintf("Baro: %f", getBaroPressure());
|
||||
} else {
|
||||
lcdPrintf("Baro: none");
|
||||
}
|
||||
return;
|
||||
case LL_AFR:
|
||||
if (engineConfiguration->hasAfrSensor) {
|
||||
lcdPrintf("AFR: %f", getAfr());
|
||||
} else {
|
||||
lcdPrintf("AFR: none");
|
||||
}
|
||||
return;
|
||||
case LL_MAP:
|
||||
if (engineConfiguration->hasMapSensor) {
|
||||
lcdPrintf("MAP: none");
|
||||
lcdPrintf("MAP %f", getMap());
|
||||
} else {
|
||||
lcdPrintf("MAP %s", getMap());
|
||||
lcdPrintf("MAP: none");
|
||||
}
|
||||
return;
|
||||
case LL_MAF_V:
|
||||
if (engineConfiguration->hasMafSensor) {
|
||||
lcdPrintf("MAF: %fv", getMaf());
|
||||
} else {
|
||||
lcdPrintf("MAF: none");
|
||||
}
|
||||
return;
|
||||
case LL_MAF_KG_HR:
|
||||
if (engineConfiguration->hasMafSensor) {
|
||||
lcdPrintf("MAF: %f kg/hr", getRealMaf());
|
||||
} else {
|
||||
lcdPrintf("MAF: none");
|
||||
}
|
||||
return;
|
||||
case LL_TRIGGER_ERRORS:
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
EXTERN_ENGINE
|
||||
;
|
||||
|
||||
/**
|
||||
* @return MAF sensor voltage
|
||||
*/
|
||||
float getMaf(DECLARE_ENGINE_PARAMETER_F) {
|
||||
return getMafT(engineConfiguration);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// This file was generated by Version2Header
|
||||
// Sat Jan 31 16:18:01 EST 2015
|
||||
// Fri Feb 13 20:54:42 EST 2015
|
||||
#ifndef VCS_VERSION
|
||||
#define VCS_VERSION "6619"
|
||||
#define VCS_VERSION "6833"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue