View Single Post
  #2   Spotlight this post!  
Unread 20-03-2011, 16:33
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Tracking down a stuttering JAG/CAM drive.

Quote:
Originally Posted by PhilBot View Post
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.
Let me preface this by saying, I don't know the LV WPILib at all. However, C++ the compressor class spawns a new thread to periodically check the pressure swicth. People have complained about this thread's CPU usage in the past. From that thread, it seems like changing the state of the compressor (with your DS switch) is adding burden to the task. Perhaps you should just use a relay VI and a digital input VI (pressure switch) to replace your compressor VI. Just poll the pressure switch in your Teleop/Auto main loops

Also, you should fix your "CAM" typos to "CAN" in the Title and post. People may mistakenly think that you are driving a CAM linkage with a motor on a Jag
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 20-03-2011 at 16:45.
Reply With Quote