I follow this doc :https://docs.odriverobotics.com/ to getting started
This is my wiring diagram
I use type:A2212-930kV motor
I want use sensorless mode to driving motor
and I follow this :
Parameters & Commands | ODrive
odrv0.axis0.controller.config.vel_gain = 0.01
odrv0.axis0.controller.config.vel_integrator_gain = 0.05
odrv0.axis0.controller.config.control_mode = CONTROL_MODE_VELOCITY_CONTROL
odrv0.axis0.controller.config.vel_limit =400 / (2pi * 12)
odrv0.axis0.motor.config.current_lim = 2 * odrv0.axis0.config.sensorless_ramp.current
odrv0.axis0.sensorless_estimator.config.pm_flux_linkage = 5.51328895422 / (12 *930)
odrv0.axis0.config.enable_sensorless_mode = True
in last setup command
In [17]: odrv0.axis0.config.enable_sensorless_mode = True
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
d:\users\harry\anaconda3\envs\odrive\lib\site-packages\fibre\shell.py in <module>
----> 1 odrv0.axis0.config.enable_sensorless_mode = True
d:\users\harry\anaconda3\envs\odrive\lib\site-packages\fibre\remote_object.py in __setattr__(self, name, value)
256 object.__getattribute__(self, "__dict__")[name] = value
257 else:
--> 258 raise AttributeError("Attribute {} not found".format(name))
259
260 def _tear_down(self):
AttributeError: Attribute enable_sensorless_mode not found
I odrivetool version is 0.5.1.post0
and I check error state
In [18]: dump_errors(odrv0)
axis0
axis: Error(s):
AXIS_ERROR_MOTOR_FAILED
motor: Error(s):
MOTOR_ERROR_DRV_FAULT
fet_thermistor: no error
motor_thermistor: no error
encoder: no error
controller: no error
axis1
axis: Error(s):
AXIS_ERROR_MOTOR_FAILED
motor: Error(s):
MOTOR_ERROR_DRV_FAULT
fet_thermistor: no error
motor_thermistor: no error
encoder: no error
controller: no error
How do I know where I am doing wrong?
Is the board broken?
Wrong command?
Wiring error?
Sorry I am from Taiwan, my English is not very good, please advise
Thanks