|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
C++ Motor contorls
So this is a really simple question. How do you control the value of the victors and jaguars in C++? I can't seem to find any documentation of the functions so I'm a little confused. I would think it would be something like:
myvictor.set();........ or myjag.set();..... I'm pretty familiar with C++, I'm just not sure what functions are already created for these and what arguments need to be passed. Thanks for the help. |
|
#2
|
||||
|
||||
|
Re: C++ Motor contorls
Yes, you are correct. Setting both a jag and a victor look like the following:
Code:
myVictor.Set(0.5); myJag.Set(0.5); Whenever you don't know which function to call, take a look at either the WPILib source code or the doxygen documentation. It will tell you which classes can run what. |
|
#3
|
||||
|
||||
|
Re: C++ Motor contorls
Thanks for the help.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|