Go to Post DONT USE ROBOTS FOR EVIL!!! - Cooley744 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2013, 20:31
gyroscopeRaptor's Avatar
gyroscopeRaptor gyroscopeRaptor is offline
Registered ConfUser
AKA: Mark McGivern
FRC #3633 (Catalyst)
Team Role: College Student
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Albert Lea, MN / Troy, NY
Posts: 360
gyroscopeRaptor has a spectacular aura aboutgyroscopeRaptor has a spectacular aura about
Re: Help, Robot turns wrong

Quote:
Originally Posted by billbo911 View Post
Just swap the PWM cables from Left to Right and Right to Left.
That didn't work. What did happen though was the robot's other axis was inverted, making the robot drive perfectly if you hold the joystick backwards.
  #2   Spotlight this post!  
Unread 23-01-2013, 21:00
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Help, Robot turns wrong

We've had this problem before in C++ I know how to fix it in LabVIEW... Basically you have to invert the control using a boolean. I do not know how to do it in C++ but it is something similar.

Another way to troubleshoot without code is to switch the polarity of the cables on the MOTOR side of the Jaguar/Talon/Victor and switch the PWMs if needed as well. You could make something along the likes of a truth table as well if that helps.

I would suggest switching the polarity of one motor, see if that fixes it and if not put it back to how you originally had it. Next you would try switching the polarity of the other motor.
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal
2017 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
  #3   Spotlight this post!  
Unread 23-01-2013, 21:13
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 688
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: Help, Robot turns wrong

As always, follow the code.

Carefully.

With a piece of paper and pen.

Write down numbers, and how each line of code changes those numbers. From Joystick to Motor. Somewhere you have a sign going the wrong way, or more likely, not understanding what the joystick is giving you. This is a very common issue.

Have your electrical crew check their wires, to be sure, but this sounds like you have to check your code.
Closed Thread


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 00:30.

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