|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Mecanum Trouble
The wheels are arranged in the proper X as viewed from the top of the bot, as I believe they should be. Right now, sending a pure forward, backward, left, or right signal has the bot going in the right direction. The rotate, however, has all of the wheels going outward from each other (the two front go forward while the two back go backward) or all inward (front go backward, back go forward).
|
|
#2
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Last edited by Ether : 27-01-2015 at 23:01. |
|
#3
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
If a rotate clockwise command causes all the wheels to run inward you need to swap the FrontLeft and BackRight motor comands. Others here can advise you how to do that in the software, or you can swap the appropriate motor wires. Last edited by Ether : 28-01-2015 at 02:02. |
|
#4
|
||||
|
||||
|
Re: Mecanum Trouble
Outward or inward is a bit confusing, try looking directly at the wheels from the outside of the robot, while the robot is elevated and not touching the floor. If you crank the joystick clockwise, all of the wheels should appear to turn counter-clockwise, when viewed from the outside. Take note of the ones that are going clockwise.
Go into begin.vi, and right-click on the terminal on the left side of the 4-motor drive open vi, that matches the inversion for the motors which spin clockwise. Click on the new boolean constant to turn it from false to true. Do this for all motors that are turning the wrong way. If you have trouble finding the motor inversion terminals (which likely are unconnected), use Control-H to bring up the context-sensitive help, and mouse over the drive open vi. All of this assumes that your motors are called in the correct position. In most cases, you will likely have to invert two of the four motors. |
|
#5
|
||||
|
||||
|
Re: Mecanum Trouble
He defined exactly what he meant by those terms in his earlier post:
Quote:
Quote:
What he needs to do is swap the FrontRight and BackLeft motor commands (if the rotate clockwise command is causing the wheels to turn "outward") or swap the FrontLeft and BackRight motor commands (if the rotate clockwise command is causing the wheels to turn "inward"). Quote:
Last edited by Ether : 28-01-2015 at 02:01. |
|
#6
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
caused the front wheels to rotate forward and the back wheels to rotate backward.
As you can see, swapping the FrontRight and BackLeft motor commands will correct the problem:
Last edited by Ether : 28-01-2015 at 12:08. |
|
#7
|
||||
|
||||
|
Re: Mecanum Trouble
Just for some clarification, when you say swap the Front Right and Back Left motors, do you mean within the HolonomicDrive.vi, or is there a place within the teleop.vi to do that? Our Build session starts in about half an hour, so we can tell how well it worked then.
|
|
#8
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Quote:
I think that can be accomplished in the Begin vi, wherever you assign the CAN addresses for the 4 motor locations. If there are any LabVIEW gurus reading, please chime in here. PS: you never did answer this post. It's important; it determines which motor commands should be swapped. |
|
#9
|
||||
|
||||
|
Re: Mecanum Trouble
Sending the robot a clockwise signal makes all of the wheels turn inward towards each other. When we made the change for the motor commands all it did was changed the strafing to the all in/out command and changed what we wanted the rotation to be to strafing.
|
|
#10
|
||||
|
||||
|
Re: Mecanum Trouble
Here's a screenshot of our code, just to reiterate, this is the code that has forward, backward, and strafing correct but has a problem with rotating. When we try to rotate clockwise the robots wheels all run inward (meaning, the two front wheel go backward and the two back wheels go forward) and when we try to rotate counterclockwise the wheels go outward (the two front go forward and the two back go backward).
Begin [IMG] [/IMG]Holonomic [IMG] [/IMG]Teleop [IMG] [/IMG] |
|
#11
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
If not, undo what you did and make the correct change. Quote:
Quote:
Last edited by Ether : 28-01-2015 at 19:00. |
|
#12
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
-Jack |
|
#13
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Looks like the change was not done properly. Please post LabVIEW png snippet of before & after code. |
|
#14
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Before: http://s278.photobucket.com/user/Daw...tml?sort=3&o=1 After: http://s278.photobucket.com/user/Daw...tml?sort=3&o=0 Last edited by REDBARON : 28-01-2015 at 20:19. |
|
#15
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Swapping the FL&BR motor commands should have had no impact at all on the strafe command. And it should have corrected the rotate behavior. This is assuming that you have provided accurate test data about wheel direction in response to fwd/rev and strafe left/right as shown in the attached chart. Would you please post the before and after code as a LabVIEW PNG snippet as an attachment here on CD. Last edited by Ether : 28-01-2015 at 20:14. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|