|
|
@ -86,7 +86,7 @@ bool StepMotor::rotate(int32_t direction) { // |
|
|
|
ZLOGE(TAG, "call stepmotor fail,motor is null"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
ZLOGI(TAG, "rotate %d", direction); |
|
|
|
ZLOGI(TAG, "rotate %ld", direction); |
|
|
|
return m_canMaster->writeReg(m_id, m_baseCtrlPoint + SAMC_REG_ACT_ROTATE, direction, 20); |
|
|
|
} |
|
|
|
int32_t StepMotor::getPos() { |
|
|
|