|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
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] |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
-Jack |
|
#7
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Looks like the change was not done properly. Please post LabVIEW png snippet of before & after code. |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
Re: Mecanum Trouble
Sorry, had some problem with posting the picture of the code. It's updated now with a link to each instance of the code.
|
|
#11
|
||||
|
||||
|
Re: Mecanum Trouble
Strafing worked fine, it was during rotation (specifically clockwise) that both sides turned inward.
Last edited by REDBARON : 28-01-2015 at 20:27. |
|
#12
|
||||
|
||||
|
Re: Mecanum Trouble
Quote:
Quote:
Quote:
|
|
#13
|
||||
|
||||
|
Re: Mecanum Trouble
Sorry there was a miscommunication. With the motors FL & BR switched strafing and forward/backward work fine but rotation does not work, with them not switched, using rotation buttons causes strafing, and strafing fights itself.
The miscommunication was that the "change" in question was not clearly defined, as we had already left yesterday with that change made and the rotation still wasn't working. Sorry about that. |
|
#14
|
||||
|
||||
|
Re: Mecanum Trouble
Hold on a second, I think I know what's going on. On the "Open 4 Motor.vi", there are actually 4 terminals to invert motors. It looks like you have both of the bottom ones set to true and the top two unwired (which defaults to false). This would mean that Both your front left and front right motors are inverted, but not the other ones. Your inversions should match on sides, not front to back. I have attached a photo that should explain it a bit better.
Try going back to the default code (run the wires directly from the joystick axes to the holonomic vi) and see if inverting the correct motors fixes everything for you. If you push the joystick forward, and the robot moves backwards, switch the inversions to the right side instead. |
|
#15
|
||||
|
||||
|
Re: Mecanum Trouble
We've sorted out the rotation problems by coding in a button that switches to arcade and using that to rotate, however we have noticed that strafing remains on the x-axis. but the y-axis causes rotation. we would like to resolve this and have the y-axis remain the same and the x-axis change
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|