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

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.

Yes, you are correct. Setting both a jag and a victor look like the following:


Where the parameter is a floating point number between -1.0 and 1.0.

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.

Thanks for the help.