First off, when you post code here, please upload a file or use the code tags (the pound sign in the text editor). That would make your code much easier to read for us.
Quote:
|
When I put this code into the robot only BRFront motor moves and very slowly. This happens when i turn on autonomous or telop. That motor is the only one on and i do not even touch any of the controls even in telop. I have no idea why this is happening. If you do not think that it is the programming please tell me hat you think it could be whether it be electrically or something when inputing the code into the robot or whatever.
|
Are you referring to "BRDrive"? I don't see a "BRFront" in this code anywhere.
A common cause of small motor variations like this is that your speed controllers are not correctly zeroed.
This document explains the calibration procedure for Victors, which I assume that you are using here. I would recommend recalibrating this controller to see if that corrects the slow spinning.
In your code, you define all of your drive speed controllers individually, as well as a RobotDrive object. I'm not sure if this specifically is causing you any issues, but it is redundant and bad programming practice to allow outputs to be controlled from two sources.