We are working on a robot with oDrive controller and 2 hoverboard motors. In order to configure the motors, we’ve been following the steps explained on the tutorial (https://docs.odriverobotics.com/hoverboard) and everything is working perfectly. The problem comes when creating the next script for controlling both motors:
We are having trouble with the time that goes from the moment the velocity for one motor is set to the moment it is set for the other motor. It is too high, even if we set them immediately one after the other (times in nanoseconds):
As you can see, there are times that the iteration lasts almost 2s, which is too much time for our project.
Our question is if this is the best way of approaching the control of the two motors or there is a better way.
Thank you so much in advance.