Go to Post Do you mean...? If so, it's illegal under . (insert your favorite reminder to read the manual here) - EricH [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 31-03-2016, 22:41
Oldgoer Oldgoer is offline
Registered User
FRC #3814
Team Role: Mentor
 
Join Date: Mar 2016
Rookie Year: 2015
Location: Kentucky
Posts: 3
Oldgoer is an unknown quantity at this point
CPU usage idles at 80% and hits 100% when running teleop code

Just recently we ran into an issue during competition that lead to our robot being disabled due to data pack loss issues. when going over the logs of the roborio we realized that basically since any code was loaded to the RIO the robot's CPU has been idling at 80%. when teh code is put into teleop mode we max out eh CPU at 100%. until just recently this appears to have not affected us, but today it appears the stars aligned ans cause our robot to fail during competition. We systematically went through our code removing things to try to figure out what was causing the issue. We basically have the code stripped down to the class calls of the attached devices and that is it and the CPU still idles at 80% with a non-existent teleop code at 100%. does anybody have any suggestion on what our problem might be. our code was never that complex to begin with so i see no reason as to why the code would peg the CPU during the teleop mode. here is a link to our robot code: http://pastebin.com/KVbgbMXF

list of trouble shooting we have tried
1. reflash the roborio -- with absloutly no code on the rio the cpu ran at a resonable CPU usage. as soon as code was loaded idle 80%, teleop 100%
2. strip down code to just class calls, variable ids, and empty voids. -- CPU idle 80%, teleop (with basically no code) 100%
3. load robot with last year code -- CPU idle 80%, teleop 100% (last year cod has significantly less in it... no camera, no CANTalon, no encoders for autonomous);
 


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 10:58.

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