2013 Java WPILib drives the Jag input PWM at 5ms (200Hz), Victor at 10ms (100Hz), Talon at 10ms
* (100Hz),
and servo at 20ms (50Hz)
Code:
private void initJaguar() {
/*
* Input profile defined by Luminary Micro.
*
* Full reverse ranges from 0.671325ms to 0.6972211ms
* Proportional reverse ranges from 0.6972211ms to 1.4482078ms
* Neutral ranges from 1.4482078ms to 1.5517922ms
* Proportional forward ranges from 1.5517922ms to 2.3027789ms
* Full forward ranges from 2.3027789ms to 2.328675ms
*/
setBounds(251, 135, 128, 120, 4);
setPeriodMultiplier(PeriodMultiplier.k1X);
setRaw(m_centerPwm);
private void initVictor() {
setBounds(208, 131, 128, 125, 54);
setPeriodMultiplier(PeriodMultiplier.k2X);
setRaw(m_centerPwm);
private void initTalon() {
setBounds(211, 133, 129, 125, 49);
setPeriodMultiplier(PeriodMultiplier.k2X);
setRaw(m_centerPwm);
private void initServo() {
setBounds(245, 0, 0, 0, 11);
setPeriodMultiplier(PeriodMultiplier.k4X);
* note: the Talon can be run at 5ms period, if you wish, by changing the period multiplier to k1X (like the Jag)