Go to Post Maybe FIRST could get a sponsorship from Ikea, and we all could get flat-packed field parts with pictoral assembly instructions. And then all the parts could have funny names. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 20-03-2011, 14:43
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Tracking down a stuttering JAG/CAM drive.

I continue to try to get my drive working with encoders/Cam etc.

I currently have a problem in that my drives Stutter as I drive.

By this I mean that when they should be driving smoothly they seem to freeze momentarily on a semi regular basis... eg once a second.

To track this down, I dropped back to a raw Robot Project (LabVIEW) and just switched the Open Drive to a CAN version with ID's 11 and 12 (to match my Jags).

Result.... it rans a smooth as a baby's.... you get the idea.

So I slowly started stripping code out of my own app untill the stutter went away (boy I wish I undserstod the safety code)

Bottom line is very interesting. When I took out the Compressor code, my drive went smooth.

I have replicated the problem with the Basic Robot code. If I open a compressor VI in Begin (and save the ref nin a global) and then in Teleop I just do two calls.... one to read the Compressor status, and one to Stop the Compressor (normally used in response to a compressor on/off switch on the DS)

With these two VIs called once per teleop cycle, my motors go back to stuttering once a second.

How is it possible for these two simple calls to cause this problem? I've attached my simplified test code. Only chanages are to Begin and Teleop.
Attached Files
File Type: zip CAN Test.zip (196.5 KB, 10 views)
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor

Last edited by PhilBot : 20-03-2011 at 14:45.
Reply With Quote
 


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 09:35.

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