View Single Post
  #9   Spotlight this post!  
Unread 12-02-2013, 14:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Issues with the Talons


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)


Last edited by Ether : 13-02-2013 at 12:23. Reason: added note