| RufflesRidge |
31-01-2012 12:58 |
Re: Drive an individual moter
Quote:
Originally Posted by Djur
(Post 1117000)
Jaguar.set(double value) is equivalent to PWM.setRaw(int channel, double value). With the PWM class, you need to specify the channel each time you change the speed of a Jaguar; however, you just need to change the speed with the Jaguar class. That's the only difference.
|
That is true for the set methods, but you also have to look at how the Jaguar is constructed.The Jaguar constructor sets particular parameters for the parent PWM object that are based on the specific pulse width timings that correspond to a Jaguar's minimum, maximum, centerpoint and deadband.
The Jaguar and Victor objects exist for a reason, nobody would have bothered to code them otherwise. Please save yourself the headache and use the appropriate speed controller object instead of the raw PWM class.
|