|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Mecanum Drive System Issues
We are having the same problem as the OP...everything works except the rotation. when we try to rotate the robot, the back wheels spin forward and the front wheels spin backwards. any ideas?
|
|
#2
|
|||
|
|||
|
Re: Mecanum Drive System Issues
Once again, I'd ask exactly how your code works. If you used the out-of-box code, there's one set of problems you might have (motor polarity wrong, arguments passed in incorrectly/in the wrong order etc.). If you created your own control system, then it's likely a problem with your calculations or logic. Not really enough information for us to diagnose what's going on. Oh, and toss it up on blocks.
|
|
#3
|
|||||
|
|||||
|
Re: Mecanum Drive System Issues
That would happen if you had the controls swapped between two diagonally opposite motors. For example, you could be controlling the left front motor with the right rear PWM signal, and vice versa. Make sure the wires match the programming.
|
|
#4
|
||||
|
||||
|
Re: Mecanum Drive System Issues
with the robot on blocks:
full forward = all wheels forward full reverse = all wheels reverse strafe right = right side spins towards each other; left side spins away from each other strafe left = left side spins towards each other; right side spins away from each other Rotate = front 2 wheels spin same direction; back 2 wheels spin same direction this is in labview |
|
#5
|
|||
|
|||
|
Re: Mecanum Drive System Issues
Here is the code we are using I have the begin in the upper left hand corner and the teleop is the rest of it. I have tried different combinations of the true/false constants to invert the motors and I can get the rotate to work when I change them to how (i think) they should be (one side inverted and the other not). But then the forward/reverse/diagonals/strafe don't work.
I checked the wiring (polarities and PWM's) and nothing was wrong there. |
|
#6
|
|||||
|
|||||
|
Re: Mecanum Drive System Issues
Quote:
Which PWM channel do you have going to each motor? I can't be absolutely certain, but your code seems to have it this way: PWM1: front left (inverted) PWM2: front right (inverted) PWM3: rear left (not inverted) PWM4: rear right (not inverted) It's rather odd to have both front motors inverted and neither rear motor inverted. One typically sees only the right motors inverted, or occasionally only the left ones. The other common situation is for none of them to be inverted and have the compensation occur in the wiring. It still looks to me like you have your front left and rear right motor controls swapped. |
|
#7
|
||||
|
||||
|
Re: Mecanum Drive System Issues
Quote:
Trace the wiring back from each front motor to make sure it isn't being controlled by the diagonally opposite rear wheel command. Also, are you using home-brew code or the WPI Holonomic Drive vi? Cartesian or Polar? Last edited by Ether : 18-02-2011 at 01:36. |
|
#8
|
|||
|
|||
|
Re: Mecanum Drive System Issues
I got fed up and decided to go through every inversion possible (all 16 of em') and on the 10th one it worked (yes I ran from robot main 10 times). The correct inversion is Rear Right and Front Right inverted and the left ones not inverted.
|
|
#9
|
|||||
|
|||||
|
Re: Mecanum Drive System Issues
Quote:
But that can't be the only thing you changed, can it? The robot was reportedly driving forward fine before. If you now have different Motor Invert settings with the same wiring, some of the motors would be running the wrong direction when you tried driving straight. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|