Quote:
Originally Posted by Unforgiven_Hero
if I have lets say a jaguar powering a belt that moves the ball, how could I go about programming that? I'm lost on how to control motors that does not involve the wheels.
|
How do you control the Jaguar? By PWM or by CAN bus. Let me assume you are using PWM. Then it would look something like this:
Code:
Jaguar *beltMotor;
...
beltMotor = new Jaguar(1); //assuming PWM channel 1
...
beltMotor->Set(1.0); //turning one way full speed
beltMotor->Set(-1.0); //turning the other way full speed
beltMotor->Set(0.0); //stop