View Single Post
  #3   Spotlight this post!  
Unread 27-01-2013, 00:12
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: PWM to CAN switch

That depends on what mode you want the Jaguar be in. If you are doing default mode, then it is pretty simple. If, however, you are doing any of the close-loop modes, you need to call different functions to initialize the Jaguar correctly. For example:
Code:
        m_Motor1(CANID_MOTOR1_JAG, CANJaguar::kSpeed);
        ...
        m_Motor1.SetSpeedReference(CANJaguar::kSpeedRef_QuadEncoder);
        m_Motor1.ConfigNeutralMode(CANJaguar::kNeutralMode_Coast);
        m_Motor1.ConfigEncoderCodesPerRev(SHOOTER_ENCODER_PPR);
        ...
__________________

Last edited by mikets : 27-01-2013 at 00:15.
Reply With Quote