auto-sync
This commit is contained in:
parent
43e05c128a
commit
504a3b784d
|
@ -22,4 +22,16 @@ void setSubaru2003Wrx(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->trigger.customSkippedToothCount = 1;
|
||||
|
||||
engineConfiguration->sensorChartFrequency = 2;
|
||||
|
||||
boardConfiguration->useStepperIdle = true;
|
||||
|
||||
// todo: url
|
||||
boardConfiguration->idle.stepperDirectionPin = GPIOD_1; // top stepper drive pin, white wire recommended
|
||||
boardConfiguration->idle.stepperStepPin = GPIOD_6; // yellow wire recommended
|
||||
engineConfiguration->stepperEnablePin = GPIOB_1; // bottom stepper driver board pin, blue wire recommended
|
||||
|
||||
boardConfiguration->triggerSimulatorPins[0] = GPIO_UNASSIGNED;
|
||||
boardConfiguration->triggerSimulatorPins[1] = GPIO_UNASSIGNED;
|
||||
boardConfiguration->triggerSimulatorPins[2] = GPIO_UNASSIGNED;
|
||||
|
||||
}
|
||||
|
|
|
@ -64,23 +64,27 @@ void idleDebug(const char *msg, percent_t value) {
|
|||
}
|
||||
|
||||
static void showIdleInfo(void) {
|
||||
scheduleMsg(logger, "idleMode=%s position=%f isStepper=%s", getIdle_mode_e(engineConfiguration->idleMode),
|
||||
const char * idleModeStr = getIdle_mode_e(engineConfiguration->idleMode);
|
||||
scheduleMsg(logger, "idleMode=%s position=%f isStepper=%s", idleModeStr,
|
||||
getIdlePosition(), boolToString(boardConfiguration->useStepperIdle));
|
||||
if (boardConfiguration->useStepperIdle) {
|
||||
scheduleMsg(logger, "direction=%s reactionTime=%f", hwPortname(boardConfiguration->idle.stepperDirectionPin),
|
||||
scheduleMsg(logger, "directionPin=%s reactionTime=%f", hwPortname(boardConfiguration->idle.stepperDirectionPin),
|
||||
engineConfiguration->idleStepperReactionTime);
|
||||
scheduleMsg(logger, "step=%s steps=%d", hwPortname(boardConfiguration->idle.stepperStepPin),
|
||||
scheduleMsg(logger, "stepPin=%s steps=%d", hwPortname(boardConfiguration->idle.stepperStepPin),
|
||||
engineConfiguration->idleStepperTotalSteps);
|
||||
scheduleMsg(logger, "enable=%s", hwPortname(engineConfiguration->stepperEnablePin));
|
||||
scheduleMsg(logger, "enablePin=%s/%d", hwPortname(engineConfiguration->stepperEnablePin),
|
||||
engineConfiguration->stepperEnablePinMode);
|
||||
} else {
|
||||
scheduleMsg(logger, "idle valve freq=%d on %s", boardConfiguration->idle.solenoidFrequency,
|
||||
hwPortname(boardConfiguration->idle.solenoidPin));
|
||||
}
|
||||
scheduleMsg(logger, "idleControl=%s", getIdle_control_e(engineConfiguration->idleControl));
|
||||
scheduleMsg(logger, "idle P=%f I=%f D=%f dT=%d", engineConfiguration->idleRpmPid.pFactor,
|
||||
engineConfiguration->idleRpmPid.iFactor,
|
||||
engineConfiguration->idleRpmPid.dFactor,
|
||||
engineConfiguration->idleDT);
|
||||
scheduleMsg(logger, "mode=%s", getIdle_control_e(engineConfiguration->idleControl));
|
||||
if (engineConfiguration->idleControl == IC_PID) {
|
||||
scheduleMsg(logger, "idle P=%f I=%f D=%f dT=%d", engineConfiguration->idleRpmPid.pFactor,
|
||||
engineConfiguration->idleRpmPid.iFactor,
|
||||
engineConfiguration->idleRpmPid.dFactor,
|
||||
engineConfiguration->idleDT);
|
||||
}
|
||||
}
|
||||
|
||||
void setIdleControlEnabled(int value) {
|
||||
|
|
|
@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20170128;
|
||||
return 20170129;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue