View Single Post
  #1   Spotlight this post!  
Unread 28-01-2013, 19:51
momoJr0 momoJr0 is offline
Registered User
FRC #4209
 
Join Date: Jan 2013
Location: Baton Rouge
Posts: 1
momoJr0 is an unknown quantity at this point
Speed Controllers Not Working

We are having an awkward issue with our speed controllers.
Our controllers will work as expected until we pass them a value below a certain threshold, at which point they no longer work. For example, this is what happens with the following code:
drive.tankDrive(1,1); //Works normally
drive.tankDrive(.5,.5); //Stops motors. Expected, as they probably just do not have enough voltage to run.
drive.tankDrive(1,1); //Motors no longer run. 0V out of speed controllers.

Once the motors stop we must disenable and reenable to get them to run again.

Team code can be found at:
https://github.com/lwague2/Team4209/...4209Robot.java

NOTE: Due to the way our robot is built and a lack of splitter cables, we have two 2-wheel RobotDrives that we simply pass like values. This seems works as expected and does not seem to be the source of the problem.
Reply With Quote