Go to Post Team handbooks - they are like safety glasses... they seem stupid and a pain to wear, and they make it harder to see... but they seem important about 1 msec after a flaming hunk on metal bounces off them. - Not2B [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 02-05-2011, 04:48 PM
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
 


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 10:20 AM.

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