View Single Post
  #1   Spotlight this post!  
Unread 05-03-2012, 21:18
grosh grosh is online now
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
CPU usage 100% & twitchy robot?

When we enable our robot the code seems to run fine for a couple of seconds then it becomes twitchy and/or laggy. What I mean by twitchy is the light on the motor controllers flicker periodically and the motors controlled by joystick buttons do not respond quickly. Also, the CPU usage on the DS graph changes from 65% to 100% at the same time that the robot seems to become twitchy. In previous years we have had much larger code without problem.

In addition, when I put probes in the teleop vi the probes indicate that the code is running perfectly. However, the motors on the robot do not.

I have included a picture of our teleop code. Any ideas?
Attached Thumbnails
Click image for larger version

Name:	LabView Code_Teleop.jpg
Views:	70
Size:	5.2 KB
ID:	12211  
Reply With Quote