
04-02-2015, 16:06
|
|
Registered User
 FRC #4791 (Pandroids)
Team Role: Engineer
|
|
Join Date: Feb 2015
Rookie Year: 2013
Location: South Bend, IN
Posts: 7
|
|
|
Re: Help programming motor
Quote:
Originally Posted by Alan Anderson
The right half of Team358's Single Motor Example, the part labeled "Teleop.vi", goes in the Teleop vi. The left half, labeled "Begin.vi", goes in the Begin vi. The other examples assume the same Begin.vi code.
The enumerated constant wired to the input of the Motor Open function defines which PWM channel is being controlled. The index numbers wired to the Index Array pull the associated button values from the array. I think the L2 button on a Logitech gamepad is number 6, and R2 is button number 7, but you can find out for yourself by setting a probe on the Buttons array coming out of the Joystick Get Values.
|
Where do we find the probe?
|