Adding motor to system please help?

Hi we’re currently a rookie team with no remote idea on how to add a motor to our default code. We hooked up a simple motor to a victor and then to the system but we have absolutely no idea on how to program it.

What language?

LabVIEW looks like this:

Although you’d want to change “Jaguar” above to “Victor”

Found under WPI Robotics Library->Actuators->MotorControl

If you are coding your robot in C++ then you can simply use the SimpleRobot example that can be accessed by going to File—New—Example—Downloadable Kernel Project—SimpleRobot—open that up and build your project. Then deploy your project to your robot. You will notice in that example that you have two drive motors connected to port 1 and 2 of your side car. You have your set up correct: Motor to jaguar (M+ and M- Side) and then from there you take wires to your Power Distribution board. You have to remember that you also have to plug in a PWM cable from your jaguar to the digital sidecar ports 1 and 2. You might have to play around with how to plug in the PWM’s because sometimes you might get them flipped; just flip them over if needed and you should have two running motors. If you want to add motors then you will have each motor usually connected to a jaguar and that jaguar gets data/integer values from your code that are transmitted through the digital sidecar (blue thing). Make sure all your major components (power distribution board, side car, cRIO, etc;) are getting power. The dis-functioning of one of these components can cause others to cause technical difficulties which will make it harder for you. you can also read the US FIRST resources and perform a benchmark test, which helps you better understand how all the electronic components are set up.

Hope this helped.

Thank you that’s exactly what I was looking for.

So are you coding in C++ or Labview?

This is what I ended up doing…http://i174.photobucket.com/albums/w81/Luiz12_2007/MESA%20Shirt/Slide1.png