|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Mecanum Question about strafing.
The wheels are in the correct X formation right?
|
|
#2
|
||||
|
||||
|
Re: Mecanum Question about strafing.
You also need pretty good weight distribution (equal weight over all 4 wheels) and good control over the RPMs of each wheel. We always used encoders on each wheel. Plus your frame has to very level with all 4 wheels making contact, some teams even have their mecanum wheels on a simple spring suspension.
|
|
#3
|
||||
|
||||
|
Re: Mecanum Question about strafing.
If you're not using a gyro and/or encoders, it will not strafe correctly. The gyro will help rule out any unwanted rotation and the encoder will help speed control. We're using Mecanum and we've been experiencing the same problem until the gyro is on.
|
|
#4
|
|||
|
|||
|
Re: Mecanum Question about strafing.
Yes, the wheels are in the "X" formation. What happens is, it strafes but as if it's on a curve rather than strafing straight left and right.
|
|
#5
|
|||
|
|||
|
Re: Mecanum Question about strafing.
How are you guys driving your robot? We used tank drive when we had mecanum wheels(both Vex Pro and Andymark) and had no problem strafing with it, even before we put any regulating code on it. We haven't really tried anything but tank when we were using mecanum so maybe that's the difference?
Also, if you are using Andymark wheels try making sure each roller spins freely, occasionally those rods got bent on ours and it would stop or slow down one of the rollers from spinning and also make the robot do strange things. |
|
#6
|
|||
|
|||
|
Re: Mecanum Question about strafing.
At the moment, we have the controls on one joystick, but we may move onto tank drive too. Though, I read what hunter said about the gyro and maybe that's it? We have a gyro, but I wasn't sure if we needed to use it.
|
|
#7
|
|||
|
|||
|
Re: Mecanum Question about strafing.
Are you using encoders at all? If not it is hard to control you robot really well.
|
|
#8
|
||||
|
||||
|
Re: Mecanum Question about strafing.
I would be that your frame is either to ridged and all 4 wheels are not getting the same amount of traction, or your weigh is not distributed correctly leaving uneven traction.
Depending on how your algorithms (i am not a programmer all i know is that we wright our own C++ code for it) work can you manually compensate (ie try turning when you rotate). Or implement PID on each of the wheels we have has success with both methods and depending on the driver we have enabled our PID or disabled it. |
|
#9
|
||||
|
||||
|
Re: Mecanum Question about strafing.
I can say in general in my experience you don't need gyro, encoders, or precision weight distribution to get a good strafe.
posting a quick video showing these things below will greatly increase your chances of getting some help, because we are all making a lot of assumptions in trying to guess your problem. 1) show your best and worst spinning rollers 2) show wheel rotations during strafe (as magnets mentioned). you can also put the bot on blocks to show this. 3) a clear shot to show the path the robot goes in when commanded to strafe Also, the "O" vs "X" configuration wouldn't affect your ability to strafe, it would just go in the opposite direction. a worm's eye view X configuration would make it hard to rotate the bot. Last edited by lcoreyl : 07-02-2014 at 22:08. Reason: better clarity |
|
#10
|
||||
|
||||
|
Re: Mecanum Question about strafing.
That's how we sort of solved our problem. It still does the curve thing but a lot less, it only curves at slow turtle speeds. We're currently implementing PID with Encoders so we can make it do that even less.
|
|
#11
|
||||
|
||||
|
Re: Mecanum Question about strafing.
Quote:
HTH |
|
#12
|
||||
|
||||
|
Re: Mecanum Question about strafing.
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.
|
|
#13
|
||||
|
||||
|
Re: Mecanum Question about strafing.
Quote:
|
|
#14
|
|||
|
|||
|
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!
|
|
#15
|
|||||
|
|||||
|
Re: Mecanum Question about strafing.
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|