Go to Post I am a human wiring diagram, how can i help you? - Jeffy [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2014, 12:30
S1nus S1nus is offline
Registered User
FRC #1757
 
Join Date: Jan 2014
Location: Westwood, MA
Posts: 4
S1nus is an unknown quantity at this point
Possible bug?

I was setting up a four-motor drive train (with jaguars) recently, and made sure the ports were correct and all of the hardware was right (it was). However, when I drove it forward, the jaguars controlling the two left-most motors lit up red, signifying that they were going 'backwards'. They were going in the correct direction, but normally when we set up drive trains like this, they flash green because they know that the direction they're turning in is actually forward.

Those two motors only spun at half speed, and I assumed this was because jaguars can't go full speed in reverse, so to fix it I did setInvertedMotor(...), and flipped the polarity of the motor which it was connected to. That did the job.

Could this be a bug in the new wpilib distribution?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2014, 12:32
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Possible bug?

The speed difference between forward and backwards should be very minimal. You probably need to calibrate the Jaguars to get them to spin the correct speed.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2014, 12:40
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Possible bug?

The motors on the left vs. right side of the drive train are rotated 180deg out from one another. To make both sides cause the wheels on the drivetrain to go in the same direction, one side of the drivetrain has to be driven in the opposite direction of the other.* The motor controllers have no notion of the forward/reverse direction relative to your robot. They can only indicate the polarity of their output voltage relative to the M+ and M- markings on their output pins.

I'm not sure why you saw the motor operating at half speed. setInvertedMotor() shouldn't affect max speed. How did you determine this was the case? Are you sure that the motors in each gear box are spinning in the same direction relative to one another?

* I'm making the assumption that voltage applied in the same polarity to all drive motors causes them all to rotate in the same direction. This isn't always true. Last year two of our 6 CIMs spun opposite the rest when the same polarity voltage was applied to their wires.


Quote:
Originally Posted by notmattlythgoe View Post
The speed difference between forward and backwards should be very minimal. You probably need to calibrate the Jaguars to get them to spin the correct speed.
If it were a calibration problem, I would have expected the speed problem to be observed in the opposite direction of travel after the setInvertedMotor() was added to the code. Was this the case?
__________________
http://team2168.org

Last edited by otherguy : 15-01-2014 at 12:42. Reason: added notmattlythgoe quote/response
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 09: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