Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Mecanum Question about strafing. (http://www.chiefdelphi.com/forums/showthread.php?t=126013)

wireties 07-02-2014 23:06

Re: Mecanum Question about strafing.
 
Quote:

Originally Posted by xXhunter47Xx (Post 1339472)
Well we coded in labview so that might have been the reason why it was so easy for us. You are right though wireties, from messing with mecanum since day 1 of build season we realized that strafing perfectly is not a thing. We can get very close but it wouldn't work.

Yeah, most people miss the fact that the OEM says the CIM motor curves can be +/- 10% (at least at the free speed point).

SeafordVikingR 10-02-2014 16:32

Re: Mecanum Question about strafing.
 
Thank you all for the responses. We did attempt to play with the gyro, but with no success. However! We realized that the wheels weren't moving in the right direction when they were strafing. What we had were the 2 front wheels moving in the same direction and and the 2 back wheels moving in the opposite direction. What we really needed were the opposite wheels, top left & bottom right, to be moving in the same direction. So when we figured that out all we did was switch the pwms in labview and now it strafes beautifully!

dellagd 10-02-2014 17:25

Re: Mecanum Question about strafing.
 
Quote:

Originally Posted by SeafordVikingR (Post 1340787)
Thank you all for the responses. We did attempt to play with the gyro, but with no success. However! We realized that the wheels weren't moving in the right direction when they were strafing. What we had were the 2 front wheels moving in the same direction and and the 2 back wheels moving in the opposite direction. What we really needed were the opposite wheels, top left & bottom right, to be moving in the same direction. So when we figured that out all we did was switch the pwms in labview and now it strafes beautifully!

Just curious, did you have the wheels incorrectly selected in the code? (For example, Front right and Back right were swapped in the code)

SeafordVikingR 13-02-2014 19:39

Re: Mecanum Question about strafing.
 
See the thing is, the defaulted mecanum code had each motor set to a pwm already, but that's also where the problem was for us. A simple switch of the pwms in the code fixed it up nicely, though.


All times are GMT -5. The time now is 03:53.

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