Go to Post Secure your battery well, or it will fly like a fish. - Nate Laverdure [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-03-2011, 16:50
pianogrrl71's Avatar
pianogrrl71 pianogrrl71 is offline
Registered User
AKA: Jaden
FRC #3504 (Girls of Steel)
Team Role: Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 27
pianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud ofpianogrrl71 has much to be proud of
Help! Velocity control with Jaguars and CAN

If you are using two jags to control two motors and one gear box, how do you use the jaguar in position or speed control?

Our system is using two jags to power two CIMs and one CIMple gearbox, with one US Digital encoder.

So we were trying to tune the PID for our drive, and it was printing the speed and position the first time. However, it would only do it the first time it went though, because we had a function that cleared the driver station LCD and it wouldn't print anything after we ran that. We're also using JAVA and Netbeans.

We eventually figured out that it was a can timeout exception when we left our coding computer plugged in. Then we kept getting CAN-time exceptions. We thought we were overloading them so we put it in delays -- big delays too, like 0.1. We've tried uncommenting and commenting things and breaking up the try-catch it was erroring in. They seemed to change almost randomly, printing the speed or position for a few seconds before erroring and still moving but not giving us back the values. So we think we could set them always, just not get them....

When we took out the delays and slave motors, it worked, but we don't want to do that because it might burn out the slave motors. We're really confused as what to do, and we don't even really know what the problem is.... so if anything needs clarification....

Thank you!!!
 


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 03: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