View Single Post
  #5   Spotlight this post!  
Unread 20-03-2013, 00:11
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: 80-100% CPU usage

We repeatedly get CPU usage errors from the code if we are calling Refnums in Periodic Tasks or Teleop that are not valid. Make sure every Refnum (the pink string that names a motor/solenoid/etc) you are calling is being properly set-up in Begin and is actually wired on the robot.

In addition, calling the same Refnum twice in periodic tasks has caused 100% CPU usage as well. Just my 2 cents
Reply With Quote