Hi there,
So i have an Odrive setup with an arduino, So far it works untill after calibration.
I’ll first explain what i did do:
I have an arduino connected to the odrive, sending calibration command will calibrate the motor, for the calibration sequence i use the search for index.
This all works fine, motor is calibrated, and holds it’s position with the current i had set (in arduino)
My arduino code can be found here: https://pastebin.com/0Ri08nTZ
At this point everything works, EXCEPT when i push the command odrive.SetPosition(0,1000);
It won’t move the motor at all, i tried multiple distances but no response whatsoever.
I’m sure the serial connection is good, since i can still recalibrate whenever i want, and ask the odrive for its encoder position.
I also had the odrive connected via usb to odrivetool to see for error messages, but nothing shows up.
I’m actually using the shiftme() path to set the positions, the serial events were for my initial tests.
I sadly do not have a logic analyzer to check uart
Can you read odrv0.axis0.controller.pos_setpoint over USB to see if it’s updated? You can also check odrv0.axis0.current_state to see if it’s correctly in closed loop control mode.