I'm using a 3-wheeled omni bot which can move in any horizontal direction (example: https://www.robotshop.com/en/3wd-48mm-omni-wheel-mobile-robot.html).
Given an object velocity (velocity at which the entire bot should move) and an angle it should move in (degrees), how can I determine the required speed of each wheel?
I tried the following, but have experienced some strange results:
const int wheel1Deg = (90 - (90 - angle)) % 360;
const int wheel2Deg = (90 - (210 - angle)) % 360;
const int wheel3Deg = (90 - (330 - angle)) % 360;
Setpoint = cos ( wheel1Deg * PI / 180.0 );
.....etc