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;
|
||||
/* IDLE configuration */
|
||||
engineConfiguration->useStepperIdle = true;
|
||||
engineConfiguration->useHbridges = true;
|
||||
engineConfiguration->useHbridgesToDriveIdleStepper = true;
|
||||
engineConfiguration->idleMode = IM_AUTO;
|
||||
engineConfiguration->useTLE8888_stepper = true;
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ void initIdleHardware(DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
if (CONFIG(useStepperIdle)) {
|
||||
StepperHw* hw;
|
||||
|
||||
if (CONFIG(useHbridges)) {
|
||||
if (CONFIG(useHbridgesToDriveIdleStepper)) {
|
||||
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);
|
||||
|
||||
|
|
|
@ -85,12 +85,12 @@ void idleDebug(const char *msg, percent_t value) {
|
|||
static void showIdleInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
const char * idleModeStr = getIdle_mode_e(engineConfiguration->idleMode);
|
||||
efiPrintf("useStepperIdle=%s useHbridges=%s",
|
||||
boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridges)));
|
||||
boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridgesToDriveIdleStepper)));
|
||||
efiPrintf("idleMode=%s position=%.2f",
|
||||
idleModeStr, getIdlePosition());
|
||||
|
||||
if (CONFIG(useStepperIdle)) {
|
||||
if (CONFIG(useHbridges)) {
|
||||
if (CONFIG(useHbridgesToDriveIdleStepper)) {
|
||||
efiPrintf("Coil A:");
|
||||
efiPrintf(" pin1=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin1)));
|
||||
efiPrintf(" pin2=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin2)));
|
||||
|
|
Loading…
Reference in New Issue