maxosprojects / open-dobot

open-dobot - Open Firmware, Driver and SDK for Dobot Arm
MIT License
139 stars 63 forks source link

Calibration direction is not set correctly in reverse #33

Closed maxosprojects closed 8 years ago

maxosprojects commented 8 years ago

Suwat wrote:

Hi max,

I'm trying calibrate base axis with following commad

driver.CalibrateJoint(1, driver.freqToCmdVal(400), driver.freqToCmdVal(50), 1, 5, 1, 1)

all steps are perfectly worked.

Base axis cw rotates toward to limit switch

when hit to limit switch it slowly ccw rotates then stop.

but If I Try to reverse direction

driver.CalibrateJoint(1, driver.freqToCmdVal(400), driver.freqToCmdVal(50), 0, 5, 1, 1)

Base axis ccw rotates toward to limit switch

when hit to limit switch it also ccw rotates then stop. (Is it should cw backing rotate or not?)

Thank.

maxosprojects commented 8 years ago

Try this branch https://github.com/maxosprojects/open-dobot/tree/bugfix/calibration-direction

maxosprojects commented 8 years ago

Fixed and merged into master branch