Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Calibrating Mecanum Drive (http://www.chiefdelphi.com/forums/showthread.php?t=89646)

WizenedEE 23-01-2011 03:13

Re: Calibrating Mecanum Drive
 
Quote:

Originally Posted by efoote868 (Post 1006254)
Imagine your robot has four mecanum wheels, with two dead motors on opposite corners, and two live motors on the different corners.

You use the joystick to try and go straight in an axis. Because there are only the opposite two motors powering the robot, the robot will spin as it moves. Since the gyro is compensating for the spin, the robot will still be attempting to move in that same direction. The two live motors will begin to output less and less.

The robot will continue to spin until the two dead motors are perpendicular to the axis that you're trying to move the robot on, and the two motors that work will be lined on that axis. The robot will no longer move, because the gyro in field centric drive will tell the working motors not to move, and tell the dead motors to go full power.


Now, imagine that instead of two dead motors, they only work at 90%. The same process will occur, except an equilibrium will be found sooner. This equilibrium requires no extra code to compensate for the biased motors.


I hope that makes sense? Otherwise I might have to try some of my mad paint skills.

Wow, that's pretty cool. It might be clearer if you say that the gyro does compensate. Also, while you are reaching that equilibrium, doesn't the robot get out of alignment (in the x direction, I know it would rotate)?

Less programming win!

efoote868 23-01-2011 03:21

Re: Calibrating Mecanum Drive
 
After taking a look at the vectors, there won't be rotation if the two live motors have equal strength, the robot will just move on a diagonal.
Woops :o .
This won't be the case though, so I think you'll still get the effect.
The correct way to go about doing this is to compensate for the rotation though :p .


All times are GMT -5. The time now is 23:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi