![]() |
Mecanum wheel twist issues.
This year we are working with a mecanum drive system. We have everything working peachy but the twist. When we twist the joystick, the robot moves in a completely random pattern. Forward, backward, and strafe are all fine.
To handle the operations we are using the Cartesian mecanum drive. For the twist we tried using Code:
stick.GetTwist()Code:
stick.GetZ()Do you guys have any idea what the problem may be? At this point, we think it may be a mechanical issue. |
Re: Mecanum wheel twist issues.
Quote:
Then put the bot on blocks (all 4 wheels off the floor) and give it a twist (rotate) command, tell us what direction each of the wheels is spinning. What model joystick are you using? |
Re: Mecanum wheel twist issues.
1 Attachment(s)
Here is a picture of the underside of the bot:
Attachment 16241 Please excuse the sub par wiring job. We're still working on cleaning that up. When twisting the joystick to the left, the front and back wheels turn away from each other. The front go forward and the back go backward. When twisting the joystick right, that is reversed, with the front going back and the back going forward. As for the joystick, we are using a Logitech extreme 3D pro. |
Re: Mecanum wheel twist issues.
Quote:
Quote:
To rotate clockwise, the left wheels should be going forward and the right wheels backward. Vice-versa for turning counter-clockwise. |
Re: Mecanum wheel twist issues.
So could this possibly be an issue with the ports the motor controllers are plugged into?
|
Re: Mecanum wheel twist issues.
A sample code maybe helpful.
|
Re: Mecanum wheel twist issues.
Quote:
|
Re: Mecanum wheel twist issues.
Right now the only portion of code that has anything to do with the driving looks like this:
Code:
myRobot.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());The ports are initialized as so: Code:
myRobot(1,2,3,4),Front left motor- Port 1 Front right motor- Port 2 Back left motor- Port 3 Back right motor- Port 4 EDIT: I forgot as a side note, the MecanumDrive_Cartesian calls for input from a gyro at the end. That has not been included yet as we are working on getting our gyro mounted and working now. |
Re: Mecanum wheel twist issues.
Quote:
|
Re: Mecanum wheel twist issues.
Quote:
|
| All times are GMT -5. The time now is 12:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi