Can you Program Two Victor 888 motor controllers To a Button On The Joystick
Yes, or use a pwm Y cable.
Thank and is there any kind of way for us to change the speed of our motor using the Dial on our Controller Attack 3 Joystick (fc13-123)
victor.set((joystick.getZ() + 1)/2);
in Java/C++.
My Team use LabView
That code still works, you just have to translate it.
Can you tell me how to do that???
This should do what cgmv123 had in Labview, I also added a bit that will have Button 1 control if the motor is On(With output from throttle) or off. Given that you were asking about setting a motor from a button in the first post.
Thank For The Help.
where do you go to,to find the button vi to program the 888 motor controllers ?
The button VI in the image will be in WPI Robotics Library >Robot Drive>Joysticks.
Also, a neat thing with the image I linked, is that you should be able to drag it into your VI and it should load as code.
now i just did that and its not turning into code
Huh, that is odd, did you save the file to disk first?
nope, but the computer i’m using doesn’t have a disk drive
He meant the hard drive or the local drive.
Yea that, sorry for that. It wont work if you drag the image from a web browser, but if you drag the file from a folder on your computer, it will.
i don’t know
I just want to know what to go to, to get the button label that’s connected to the joystick get
- Hover the cursor over the output node on the Joystick Get that’s called “Buttons.”
- Right-click and choose Cluster, Class, Variant -> Unbundle by name
(the first choice) 1. Place the icon on the block diagram
*]Wire the empty icon to the button node on the Joystick Get