Sensorless phase resistance out of range error

Hello all,

I am trying to run a sensorless on the DUAL SHAFT MOTOR - D5065 270KV and after the odrv0.axis0.requested_state = AXIS_STATE_SENSORLESS_CONTROL command is entered the motor spins for a second and then stops. When I error dump I run into ERROR_PHASE_RESISTANCE_OUT_OF_RANGE. Would one of these commands work to fix this?odrv0.axis0.motor.config.resistance_calib_max_voltage odrv0.axis0.motor.config.requested_current_range
odrv0.axis0.motor.config.calibration_current

Thanks all!

You will have to run the motor calibration AXIS_STATE_MOTOR_CALIBRATION before trying to run the sensorless control.

Following Wetmelon’s answer above, refer to the ODrive Documentation, the calibration result could be stored via seting <axis>.motor.config.pre_calibrated to True and save the configuration. After that you don’t have to run the motor calibration on the next start up.