Odrive - Control mods

Hello All, I need some help for odrive motor control,
I want to rotate my motor 360 ​​degrees,

thus I used asci command like q 0 -2 10 0.1.

Motor is turning but as he wishes :)) I want rotate 360 degress. what can ı for this? plese help me. ty

Hmm, when you say it is “turning but as it wishes”, what does that mean? Does it just keep spinning forever?

Thank you for your interest.

No Doesnt turning forever.

“turning but as it wishes” it’s mean; when I used “q 0 -2 10 0.1” motor is turning but ı want rotate 180 or 360 degress. what can I for this. What commands can i use

ty.

I think you want
q 0 0 0 0 to send the motor to position 0
q 0 0.5 0 0 will rotate to 180 degrees
q 0 1 0 0 will rotate to 360 degrees

The last two numbers are feedforward terms which are not needed by most people (perhaps they should be optional arguments @wetmelon)

Ty,

This is what I was looking for, but when I used “q 0 1 0 0” the motor is not turning.

in order of my commands;
1-) w axis0.controller.config.control_mode 3
2-) w axis0.requested_state 8
3-) q 0 1 0 0 ( when I used “q 0 1 100 10” the motor is turning.)

possibly your control gains are wrong, or the controller is in the wrong mode. Check that you have set controller.config.input_mode correctly (e.g. to INPUT_MODE_PASSTHROUGH)
Check that it works when setting controller.input_pos via USB

@towen I made the same mistake xD

q 0 1 0 0 means "Axis 0 to position 1, with vel_limit = 0 and torque_limit = 0.

p 0 1 0 0 means "Axis 0 to position 1 with input_vel = 0 and input_torque = 0

Towen and Wetmelon Thank you so much

1 Like