Go to Post Quality has nothing to do with desire – you can’t wish quality. Quality has nothing to do with time, or money, or the other guy’s attitude. Quality has everything to do with craftsmanship. - Jack Jones [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #3   Spotlight this post!  
Unread 30-01-2017, 09:07
tatzoid tatzoid is offline
Registered User
FRC #4573
 
Join Date: Jan 2017
Location: South River, NJ
Posts: 2
tatzoid is an unknown quantity at this point
Re: ADXRS450 Straight Drive Not Working

I think you are using the gyro the wrong way for the cartesian form:

mecanumDrive_Cartesian(x speed, y speed, rotation rate, gyro angle)
Use gyro for "field oriented driving"
see: https://wpilib.screenstepslive.com/s...-mecanum-drive

The polar form may be more appropriate here:
mecanumDrive_Polar(driveSpeed, angle, rotation rate)

Use the Gyro for the angle: use -gyro.getAngle() to go straight (0 degrees) and use zero for rotation rate.
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 21:34.

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