Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Gyro+Mecanum=????? (http://www.chiefdelphi.com/forums/showthread.php?t=90076)

tomy 25-01-2011 15:03

Gyro+Mecanum=?????
 
How does the gyro help with driving carcesion mecanum drive, because we got our joysticks set up the way we want it then we hooked up the gyro and our robot didn't drive as well

all we did is this

Code:

mecanum_carcesion(float x, float y, float rotation, gyro.GetAngle();
yes we do have stuff for float x and y and rotation im just cant remeber them right now.

also should we just use the gyro for automomous mode?

Alan Anderson 25-01-2011 15:27

Re: Gyro+Mecanum=?????
 
Quote:

Originally Posted by tomy (Post 1008110)
How does the gyro help with driving carcesion mecanum drive, because we got our joysticks set up the way we want it then we hooked up the gyro and our robot didn't drive as well

Assuming your code doesn't have the typographical errors you showed us, and assuming your gyro is correctly mounted and wired and initialized, adding the GetAngle() call to the mecanum drive function should give you field-centric control. No matter which way the robot is facing at any given time, telling it to move "forward" will make it go in the direction it was facing when it was turned on.

Robototes2412 25-01-2011 15:31

Re: Gyro+Mecanum=?????
 
read pdf

http://www.chiefdelphi.com/forums/at...9&d=1295551765

tomy 25-01-2011 16:38

Re: Gyro+Mecanum=?????
 
So why when we put it thhe gyro why dose the starf get messed up?

Zme 27-01-2011 08:34

Re: Gyro+Mecanum=?????
 
could you better define messed up? its a pretty vague description that with some bits of code can mean just about anything.

Ether 27-01-2011 10:52

Re: Gyro+Mecanum=?????
 
Quote:

Originally Posted by Robototes2412 (Post 1008146)

Hi Robototes2412,

I'm glad you found my paper helpful, and I appreciate your enthusiasm about it and your desire to share it with others, but could I make a few requests?

1) You downloaded the paper and attached it to a post you made. That version is now obsolete, and you have been directing traffic to that obsolete version. Please delete the outdated attachment from your post.

2) If you want to recommend a paper you have found in CD media, please just link to it. That way, the author has control and can make corrections. Don't download a copy and attach it to a post.

3) There are certain situations where that particular paper is not really relevant for someone seeking help even though the general topic may be mecanum or omni... for example, someone who explicitly is asking very targeted questions about the LabVIEW vi, or someone who is having trouble getting the motors to respond to joystick commands. Recommending that paper in situations like that wouldn't be appropriate.

Even though the "time window" for editing your post has expired, you can still delete the attachment. If you need help doing this, PM me and I will be glad to walk you through it.

Thanks,

Ether



frenchie4111 28-01-2011 19:38

Re: Gyro+Mecanum=?????
 
We specifically need help establishing an initial reading for our gyro in the labview vi.

We are trying to make use of the gyro to establish the dead ahead movement talked about early in this post (so that when we press go forward, the established forward is the direction the robot travels in).

Does anyone have a labview tutorial or document specifically referencing how to set up and use the gyro (for mechanum)?

mwalimu 05-02-2011 16:48

Re: Gyro+Mecanum=?????
 
Quote:

Originally Posted by tomy (Post 1008110)
How does the gyro help with driving carcesion mecanum drive, because we got our joysticks set up the way we want it then we hooked up the gyro and our robot didn't drive as well

all we did is this

Code:

mecanum_carcesion(float x, float y, float rotation, gyro.GetAngle();
yes we do have stuff for float x and y and rotation im just cant remeber them right now.

also should we just use the gyro for automomous mode?

We tried the same code and got similar results. The gyro angle part of the mecanumdrive_cartesian method seems to be broken. For example, putting a fixed angle of 90 degrees in for gyro->GetAngle() exhibits the following behavior:

forwards drives forwards
backwards drives backwards
spin right = strafe right
spin left = strafe left
strafe right = spin left
strafe left = spin right

Running it with the actual gyro output in there (and yes, the gyro shows the correct angle) exhibits very strange behavior like strafe left becomes turn left becomes strafe right while the joystick is pushed to the left and held there.


All times are GMT -5. The time now is 13:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi