|
@ -204,7 +204,7 @@ void PumpCtrlService::rotate(int32_t mid, int32_t direction) { |
|
|
|
|
|
|
|
|
ValveStateSyncService::ins()->setValveState(1); |
|
|
ValveStateSyncService::ins()->setValveState(1); |
|
|
TMC51X0* cur_motor = m_motors[mid]; |
|
|
TMC51X0* cur_motor = m_motors[mid]; |
|
|
cur_motor->rotate(direction > 0 ? PUMP_TEST_RPM : -PUMP_TEST_RPM); |
|
|
|
|
|
|
|
|
cur_motor->rotate(direction > 0 ? getMxRunRPM(mid) : -getMxRunRPM(mid)); |
|
|
} |
|
|
} |
|
|
void PumpCtrlService::stopRotate() { |
|
|
void PumpCtrlService::stopRotate() { |
|
|
if (isWorking()) { |
|
|
if (isWorking()) { |
|
|