|
Re: Motors Only Work When Being Calibrated
Quote:
Originally Posted by OwenVanTiem
We tried something similar, we unplugged 2 and tried driving, and it worked perfectly fine. We traced the leads, and they are all plugged in fine and everything is where it should be. For now I fixed the problem by inverting the motor in the code, which seems to make them both travel in the correct direction. We suspect that there is a problem with the victor but we cant be sure.
|
Your Victor may be fine. The direction a motor spins when apply 12V on the + side and ground on the - side is dependant upon how the motor is wound internally.
Not all motors from the same manufacture are wound in the same direction. This could mean two separate motors from the same manufacture can spin in opposite directions when applied voltage in the same orientation.
We have personally notice this on CIM motors. You should make it a habbit to check each motors direction of travel off board and mark them, especially when placing two or more motors in the same gearbox.
It sounds like your problem was just driving both motors into each other causing them to fight. I don't think your victor is broken, but you can check it by unplugging the motor and reading the voltage out of it as you scale the sticks. The voltage should move near linearly from 0 to full battery voltage.
Swapping the boolean value in code, is exactly what you should have done to rectify your situation, so don't think you did a quick fix, it was the correct way.
Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
|