Go to Post There is nothing that compares to the smell of burning flesh, especially when it is your own. - Al Skierkiewicz [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 Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 13-02-2010, 18:22
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 100
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Problem using encoders on Jaguar

Sure would be nice to know how you got rid of the -52007 errors. I believe that error is causing the robot to trip the watchdog.

We aren't doing anything with PID at this point. Just using the simple drive system. We can see the Jaguars responding, but they periodically flash off when the watchdog is hit.

Glad you got things working.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #17   Spotlight this post!  
Unread 15-02-2010, 09:12
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: Problem using encoders on Jaguar

Our PID values we are using are the same we are using on BDC-COM,
It is highlighted in the image we posted earlier.
We do a get on our PID values from the device to check that it is the same, and it is... It is very frustrating :<
__________________
I see in logic, Black and White

Last edited by Mr-Shutter : 15-02-2010 at 09:15.
Reply With Quote
  #18   Spotlight this post!  
Unread 15-02-2010, 09:19
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 334
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Problem using encoders on Jaguar

Hi Guys,

Could you post your code to set up the jags to run in speed mode? Are you using a shaft encoder? If so, could you also post the set up sequence you're using to set and read the encoder position? I'd like to add it to my Jaguar how-to document.

TIA,

Mike
Reply With Quote
  #19   Spotlight this post!  
Unread 15-02-2010, 19:49
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Problem using encoders on Jaguar

Here is a pic of our 4 motor drive setup. What we did was modify the FirstForge 4 motor setup vi to set it up for speed control instead. To do this we had to set the encoder rate, set the pid values, and enable it to allow the jaguars to have control. Then all we did was calculate the direction and magnitude and used the holonomic vi FirstForge provided. W actually never read the encoder rates while they are running and never set encoders up to use, the jaguars do all of this for us. What we did realize is that once you put the jaguars in speed mode you now send the jaguars the rate you want the motors spinning in rotations per second, unlike what the bd-comm application does.
Reply With Quote
  #20   Spotlight this post!  
Unread 15-02-2010, 19:54
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Problem using encoders on Jaguar

It would help if I attached the pic >.<
Attached Thumbnails
Click image for larger version

Name:	Setup 4 Motor Speed Control.jpg
Views:	83
Size:	66.4 KB
ID:	8695  
Reply With Quote
  #21   Spotlight this post!  
Unread 19-02-2010, 10:43
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: Problem using encoders on Jaguar

Hmm, It appears that there is an Over flow on the accumulator for the PID loop
I think the Labview code encodes the Double wrong when it sends it as a u32 Int. I am going to try sending it bytes i captured from bdc-com and see what happens :3
__________________
I see in logic, Black and White
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Encoders svenw C/C++ 2 14-01-2010 16:43
Benchmark Test Jaguar Problem xxsumz Motors 3 13-02-2009 21:48
Jaguar Problem Sauce Electrical 7 10-01-2009 14:28
Jaguar Motor Controller Problem prashil27 Electrical 5 07-01-2009 21:21
Autonomous using encoders Mr.G Programming 11 17-01-2006 03:34


All times are GMT -5. The time now is 10:46.

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