Go to Post There can never be enough recognition of a job well done. We can never say enough Thank You's. We can never measure the impact that an inspirational teacher or mentor can make on a student because it's priceless. - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-10-2010, 15:35
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: Jaguar Non-FRC Firmware

Quote:
Originally Posted by dyanoshak View Post
Are you configuring the PID constants? By default they are all 0, so no matter what speed, position, or current you tell the Jaguar to hold, it will not move with P, I, and D set to 0. Are you wiring up the appropriate sensors for position and speed modes? Are you configuring those sensors properly (number of encoder ticks, turns of the pot, etc.)?
Yes as I said there was NO change to the software I was using. The software worked for voltage and position control. PID was 10, 0.02, 0.02. Encoders were read and Jags reported position and speed.

Quote:
Originally Posted by dyanoshak View Post
Do you have a Black Jaguar? I would recommend trying to control the Jaguar with BDC-COMM first. You will have to make your own serial adapter, but the instructions and part numbers are available in the MDL-BDC24 Getting Started Guide.

This way you can get the various modes working and then troubleshoot your own method of connecting to the Jaguar. BDC-COMM offers an easy way to see what parameters need to be set to get the modes to run correctly.

Without more detail on what you're doing, I can't help troubleshoot the problem.



We only have the latest firmware versions on the web.

-David
If I had a serial port I would. But cant until I have access to one.

Like I said the jaguar can protocol is being used just its being sent to the 2CAN as raw can frames. Here is a sample piece of code that should work.


Code:
CANJaguar canJaguar = new CANJaguar(2, CANJaguar.ControlMode.kSpeed);
        canJaguar.setSpeedReference( CANJaguar.SpeedReference.kEncoder);
        
        canJaguar.configEncoderCodesPerRev((short)20);
        canJaguar.setPID(10, 0.02, 0.02);

        canJaguar.enableControl(0);

        while(true)
        {
            canJaguar.set(100);
            
            try
            {
                Thread.sleep(10);
            }
            catch(InterruptedException excep)
            {}
        }
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Jaguar Firmware: Version 91 dyanoshak CAN 6 06-11-2010 13:25
New Jaguar Firmware: Version 90 dyanoshak CAN 3 24-03-2010 11:41
New Jaguar Firmware: Version 89 dyanoshak CAN 10 24-02-2010 10:10
Bricked black Jaguar after bad firmware update FRC4ME CAN 13 19-02-2010 16:52
FRC CompactRIO firmware upgrade help mole Programming 8 17-01-2009 18:46


All times are GMT -5. The time now is 03:28.

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