I’m trying to control ODrive 3.6 with Arduino Mega.
I call this:
  odrive.SetPosition(0, 1, SPEED_MAX);
I set SPEED_MAX to 0.1 or 2, but the maximum speed with which the motor moves seems to be the same.
How can I set a max speed?
Thanks,
Mihai
I’m trying to control ODrive 3.6 with Arduino Mega.
I call this:
  odrive.SetPosition(0, 1, SPEED_MAX);
I set SPEED_MAX to 0.1 or 2, but the maximum speed with which the motor moves seems to be the same.
How can I set a max speed?
Thanks,
Mihai
That should do it, interesting. Have you tuned your PID loop?
You may want to consider trajectory mode instead, if you want point-to-point movement with an accel/decel/velocity limit: