Go to Post Blowing out the transmission on your mini-van while hauling a trailer 700 miles from home is not fun. Trust me on this. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2011, 15:03
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
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?

Last edited by tomy : 25-01-2011 at 15:04. Reason: forgot the dang semicolon
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2011, 15:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Gyro+Mecanum=?????

Quote:
Originally Posted by tomy View Post
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2011, 15:31
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Gyro+Mecanum=?????

read pdf

http://www.chiefdelphi.com/forums/at...9&d=1295551765
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2011, 16:38
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Gyro+Mecanum=?????

So why when we put it thhe gyro why dose the starf get messed up?
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2011, 08:34
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2011, 10:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyro+Mecanum=?????

Quote:
Originally Posted by Robototes2412 View Post
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


Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2011, 19:38
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
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)?
__________________
[url="http://mylifeisnerdy.co.cc"]My Life Is NerdyURL]
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2011, 16:48
mwalimu mwalimu is offline
Registered User
FRC #2085 (Robodogs)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2006
Location: US
Posts: 1
mwalimu is an unknown quantity at this point
Re: Gyro+Mecanum=?????

Quote:
Originally Posted by tomy View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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