View Single Post
  #1   Spotlight this post!  
Unread 26-02-2014, 09:58
OwenVanTiem OwenVanTiem is offline
Code Monkey
FRC #0453 (Rock Em Sock Em Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Michigan
Posts: 5
OwenVanTiem is an unknown quantity at this point
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by Jon Stratis View Post
I'm going to spell out what I think your setup and observations are, then give you the problem and solution, assuming my understanding of the setup and observations are correct.

Setup: You have two motors going into a single gearbox to power each side of the robot. This would be for a normal "tank" drive robot, for example having 6 wheels on each side all chained together.

Observations:
- One side does not move when the code tells it to
- When calibrating the motor controllers, you see:
1. Calibrating controller "1" makes the wheels spin forward when you want them to go forward in the calibration
2. Calibrating controller "2" makes the wheels spin backwards when you want them to go forward in the calibration - ie it acts opposite of controller "1"

Is all of that correct? If so, then I've got another test for you. Unplug controller "2" and try driving. Does that side work as expected? Now, plug that controller back in and unplug controller "1" and try driving. Does that side work as expected?

I suspect you somehow got the motor leads "swapped" for controller "2". As a result, when you try driving forward on that side, motor "1" sees a +12V signal, while motor 2, with the leads swapped, seeings a -12V signal. The motors run against each other and stall in the gearbox. Unplug the motor leads from controller "2", swap them, and plug them back in.
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.