Go to Post If they're going to blame you for it anyway, you might as well have fun. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2014, 21:05
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
determine CPU utilization?

Trying to finish up our telemetry. The piece of information I want to stuff into the dashboard is CPU utilization.

I've been all over the wpilibj source looking for where the CPU utilization is determined and sent, and am starting to suspect it's at a level below Java.

Does anyone else have a clue how to determine CPU utilization and send it along?

barring that, is it possible to export the DS logs in a format we could correlate with team-recorded data?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2014, 21:46
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,637
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: determine CPU utilization?

Quote:
Originally Posted by fovea1959 View Post
barring that, is it possible to export the DS logs in a format we could correlate with team-recorded data?
I wish...

If only to correlate battery voltage to actuation, thus creating better mechanism simulators for next year.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2014, 21:52
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: determine CPU utilization?

I also believe the CPU utilization is below WPILib.

Here's an explanation of the ds log format from a few years ago: http://www.chiefdelphi.com/forums/sh...d.php?t=104689

Battery voltage is easily measured by robot code, and can be correlated there or sent to the driver station.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2014, 22:10
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: determine CPU utilization?

Joe is right about the battery voltage, and they even give us an easy way to measure it, DriverStation.getbatteryVoltage().

Joe: thanks for the pointer! I was a-fearing the logs would be in TDMS (I remember doing a Java parser for that a few years ago, not something I would try to walk a high school student through). The log file format as documented by Greg is workable (and good to see we have more resolution than the clipboard export provides).

We're on the practice field tomorrow (our first year of being done early enough to practice on Saturday <WOOT>), so I hope to have quiet time watching the students and hexdumping log files.
Reply With Quote
Reply


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:33.

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