View Single Post
  #7   Spotlight this post!  
Unread 19-02-2016, 15:52
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Programming issues

Quote:
Originally Posted by Alan Anderson View Post
If a motor ran without being commanded to by your program, it sounds like you might have at least one of your Victors wired backwards. Power goes to the V+ and V- terminals, and the M+ and M- terminals go to the motor. If you had the motor terminals connected to battery power, you've probably fried the Victor and it'll take an expert to have a chance of repairing it.



That violates the robot rules. You may only connect motor speed controller PWM inputs to the PWM outputs of the RoboRIO. I can't help you further until you have wired the robot in a way can pass inspection.

You didn't mention the switch that I saw in the code. The programming for that switch was definitely going to break the program completely. Take out all of the related code and get the motors running first.

You said you're using Victors. Those are notoriously difficult to get the PWM connector properly plugged in. If the LED on the Victor is still blinking when you enable the robot, either it isn't connected right or you have failed to initialize the PWM output it's connect to.
The arduino was only to test and see if the motor controllers were still working or not.

The motor controllers are wired correctly.

The code i have been using to test the motors has no switch code in it
it is only programmed for drive motors.
Reply With Quote