Go to Post You will find friends among all FIRST students who will become very good friends of yours, will care and help you with anything that you need help with. This is my personal opinion, If you are hooked, dont ever let it go. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Motors
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
  #4   Spotlight this post!  
Unread 04-02-2014, 14:49
blackdiamond377 blackdiamond377 is offline
Registered User
FRC #2928
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle WA
Posts: 2
blackdiamond377 is an unknown quantity at this point
Well, I guess Jon beat me to it, but I do actually have some input on the left/right mix up.
If you pass in a joystick to the built in arcade drive method you will have that problem. I'm not entirely sure why, but you can fix it by passing in the y and x axis as speed and rotation, respectively, yourself.

Something like this should work:

speed = joy.GetY()
rot = joy.GetX()
robotDrive.ArcadeDrive (speed, rot)
 


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 22:17.

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