|
Re: How to set up a 3rd (non drive) motor in C++ Windriver
From my fuzzy memory...
Among your member variables:
Jaguar* pMotor;
In the body of your constructor
pMotor = new Jaguar(...); // I don't remember the specific parameters. One will be the slot your sidecar comes out of, one will be the PWM output the motor is connected on
In your operator-control code:
pMotor->Set(0.5); // partial forward. I may have gotten the function name wrong. Check out the .h file for details.
|