Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   CAN (http://www.chiefdelphi.com/forums/forumdisplay.php?f=185)
-   -   PWM to CAN switch (http://www.chiefdelphi.com/forums/showthread.php?t=111995)

3044smike 24-01-2013 21:25

PWM to CAN switch
 
does anyone know how to do this via programming (perferably in java), my team has been having some problems.:confused:

CosmicCricket 26-01-2013 17:19

Re: PWM to CAN switch
 
Programming-side, working with CAN should not be too different. Make sure you are declaring your jaguars as CANJaguars, and make sure your ID numbers match up with those in your code.

mikets 27-01-2013 00:12

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);
        ...



All times are GMT -5. The time now is 20:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi