|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|