This commit is contained in:
parent
7f05e45d41
commit
88b08a9156
|
@ -551,7 +551,7 @@ void EtbController::setOutput(expected<percent_t> outputValue) {
|
|||
m_motor->set(ETB_PERCENT_TO_DUTY(outputValue.Value));
|
||||
} else {
|
||||
// Otherwise disable the motor.
|
||||
m_motor->disable("setOutput");
|
||||
m_motor->disable("no-ETB");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -214,6 +214,7 @@ void processCanBenchTest(const CANRxFrame& frame) {
|
|||
const dc_io *io = &engineConfiguration->etbIo[dcIndex];
|
||||
directWritePad(io->controlPin, 1);
|
||||
directWritePad(io->directionPin1, direction);
|
||||
directWritePad(io->disablePin, 0); // disable pin is inverted - here we ENABLE. direct pin access due to qcDirectPinControlMode
|
||||
} else if (command == bench_test_io_control_e::CAN_BENCH_SET_ENGINE_TYPE) {
|
||||
int eType = frame.data8[2];
|
||||
// todo: fix firmware for 'false' to be possible - i.e. more of properties should be applied on the fly
|
||||
|
|
Loading…
Reference in New Issue