FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying the Robot Main.vi, Begin.vi, Teleop.vi

Solved!
Go to solution

Greetings,

How would i add another motor to the example robot project vi's?

The motors are configured to PWMs 1 and 2.

I would like to add another motor that will be in pwm 3 running on another joystick.

How would i create another reference to joystick and motors? I ve been looking at the code and i need a little assistance.

Thank you

Vivian, Team 3091

0 Kudos
Message 1 of 2
(3,969 Views)
Solution
Accepted by topic author viva31

In your begin.vi add an open motor.vi and attach it to a getdriverefnum.vi

then an open joystick.vi and attach it to a refnum.vi

Right click on the open VIs (Joystick and motor) and create constants in order to choose PWM and USB ports.

begin.JPG

Ill add teleop.vi info later

Also sorry if the picture is blurry, ill try to get a better one.

0 Kudos
Message 2 of 2
(2,516 Views)