mirror of https://github.com/rusefi/rusefi-1.git
wow that was a bad setting name
This commit is contained in:
parent
9d5fa917d9
commit
8fabcd15ab
|
@ -26,7 +26,7 @@ void setLadaKalina(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
engineConfiguration->stepperDcIo[1].directionPin2 = TLE8888_PIN_24;
|
engineConfiguration->stepperDcIo[1].directionPin2 = TLE8888_PIN_24;
|
||||||
/* IDLE configuration */
|
/* IDLE configuration */
|
||||||
engineConfiguration->useStepperIdle = true;
|
engineConfiguration->useStepperIdle = true;
|
||||||
engineConfiguration->useHbridges = true;
|
engineConfiguration->useHbridgesToDriveIdleStepper = true;
|
||||||
engineConfiguration->idleMode = IM_AUTO;
|
engineConfiguration->idleMode = IM_AUTO;
|
||||||
engineConfiguration->useTLE8888_stepper = true;
|
engineConfiguration->useTLE8888_stepper = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ void initIdleHardware(DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
if (CONFIG(useStepperIdle)) {
|
if (CONFIG(useStepperIdle)) {
|
||||||
StepperHw* hw;
|
StepperHw* hw;
|
||||||
|
|
||||||
if (CONFIG(useHbridges)) {
|
if (CONFIG(useHbridgesToDriveIdleStepper)) {
|
||||||
auto motorA = initDcMotor(engineConfiguration->stepperDcIo[0], 2, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX);
|
auto motorA = initDcMotor(engineConfiguration->stepperDcIo[0], 2, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
auto motorB = initDcMotor(engineConfiguration->stepperDcIo[1], 3, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX);
|
auto motorB = initDcMotor(engineConfiguration->stepperDcIo[1], 3, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
|
|
|
@ -85,12 +85,12 @@ void idleDebug(const char *msg, percent_t value) {
|
||||||
static void showIdleInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
static void showIdleInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
const char * idleModeStr = getIdle_mode_e(engineConfiguration->idleMode);
|
const char * idleModeStr = getIdle_mode_e(engineConfiguration->idleMode);
|
||||||
efiPrintf("useStepperIdle=%s useHbridges=%s",
|
efiPrintf("useStepperIdle=%s useHbridges=%s",
|
||||||
boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridges)));
|
boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridgesToDriveIdleStepper)));
|
||||||
efiPrintf("idleMode=%s position=%.2f",
|
efiPrintf("idleMode=%s position=%.2f",
|
||||||
idleModeStr, getIdlePosition());
|
idleModeStr, getIdlePosition());
|
||||||
|
|
||||||
if (CONFIG(useStepperIdle)) {
|
if (CONFIG(useStepperIdle)) {
|
||||||
if (CONFIG(useHbridges)) {
|
if (CONFIG(useHbridgesToDriveIdleStepper)) {
|
||||||
efiPrintf("Coil A:");
|
efiPrintf("Coil A:");
|
||||||
efiPrintf(" pin1=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin1)));
|
efiPrintf(" pin1=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin1)));
|
||||||
efiPrintf(" pin2=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin2)));
|
efiPrintf(" pin2=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin2)));
|
||||||
|
|
Loading…
Reference in New Issue