DC not ETB refactoring
This commit is contained in:
parent
e39133fef1
commit
cd7cefb669
|
@ -20,10 +20,10 @@ void setLadaKalina(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
/* PRE uses TLE8888_PIN_22 for fan */
|
||||
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
||||
// TLE8888 two bridge drivers for stepper
|
||||
engineConfiguration->etbIo2[0].directionPin1 = TLE8888_PIN_21;
|
||||
engineConfiguration->etbIo2[0].directionPin2 = TLE8888_PIN_22;
|
||||
engineConfiguration->etbIo2[1].directionPin1 = TLE8888_PIN_23;
|
||||
engineConfiguration->etbIo2[1].directionPin2 = TLE8888_PIN_24;
|
||||
engineConfiguration->stepperDcIo[0].directionPin1 = TLE8888_PIN_21;
|
||||
engineConfiguration->stepperDcIo[0].directionPin2 = TLE8888_PIN_22;
|
||||
engineConfiguration->stepperDcIo[1].directionPin1 = TLE8888_PIN_23;
|
||||
engineConfiguration->stepperDcIo[1].directionPin2 = TLE8888_PIN_24;
|
||||
/* IDLE configuration */
|
||||
engineConfiguration->useStepperIdle = true;
|
||||
engineConfiguration->useHbridges = true;
|
||||
|
|
|
@ -146,12 +146,12 @@ static void showIdleInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
if (CONFIG(useStepperIdle)) {
|
||||
if (CONFIG(useHbridges)) {
|
||||
scheduleMsg(logger, "Coil A:");
|
||||
scheduleMsg(logger, " pin1=%s", hwPortname(CONFIG(etbIo2[0].directionPin1)));
|
||||
scheduleMsg(logger, " pin2=%s", hwPortname(CONFIG(etbIo2[0].directionPin2)));
|
||||
scheduleMsg(logger, " pin1=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin1)));
|
||||
scheduleMsg(logger, " pin2=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin2)));
|
||||
showDcMotorInfo(logger, 2);
|
||||
scheduleMsg(logger, "Coil B:");
|
||||
scheduleMsg(logger, " pin1=%s", hwPortname(CONFIG(etbIo2[1].directionPin1)));
|
||||
scheduleMsg(logger, " pin2=%s", hwPortname(CONFIG(etbIo2[1].directionPin2)));
|
||||
scheduleMsg(logger, " pin1=%s", hwPortname(CONFIG(stepperDcIo[1].directionPin1)));
|
||||
scheduleMsg(logger, " pin2=%s", hwPortname(CONFIG(stepperDcIo[1].directionPin2)));
|
||||
showDcMotorInfo(logger, 3);
|
||||
} else {
|
||||
scheduleMsg(logger, "directionPin=%s reactionTime=%.2f", hwPortname(CONFIG(idle).stepperDirectionPin),
|
||||
|
|
Loading…
Reference in New Issue