Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   determine CPU utilization? (http://www.chiefdelphi.com/forums/showthread.php?t=126473)

fovea1959 14-02-2014 21:05

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?

JesseK 14-02-2014 21:46

Re: determine CPU utilization?
 
Quote:

Originally Posted by fovea1959 (Post 1343307)
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.

Joe Ross 14-02-2014 21:52

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.

fovea1959 14-02-2014 22:10

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.


All times are GMT -5. The time now is 22:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi