Go to Post OK, I have officially been dragged into the 21st century (screaming and kicking the whole way). - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2013, 21:25
3044smike's Avatar
3044smike 3044smike is offline
Registered User
FRC #3044
 
Join Date: Jan 2011
Location: Ballston Spa NY
Posts: 7
3044smike is an unknown quantity at this point
Question PWM to CAN switch

does anyone know how to do this via programming (perferably in java), my team has been having some problems.
__________________
Team 3044 Ox: BE4

http://www.team3044.com/
http://www.usfirst.org/frc


I have a image of a DVD REWINDER
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2013, 17:19
CosmicCricket CosmicCricket is offline
Registered User
FRC #2517
 
Join Date: Apr 2012
Location: Vancouver, WA
Posts: 10
CosmicCricket is an unknown quantity at this point
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.
Reply With Quote
  #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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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