Add trace to help determine which columns are selected when loading a file into the Dyno tab

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@289 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
Dale Schultz 2010-05-24 14:31:10 +00:00
parent f6a0fe2090
commit d96f4f81e0
1 changed files with 4 additions and 1 deletions

View File

@ -1012,6 +1012,9 @@ public final class DynoControlPanel extends JPanel {
if (headers[x].contains(LOG_VS_I)) vsLogUnits = LOG_VS_I; if (headers[x].contains(LOG_VS_I)) vsLogUnits = LOG_VS_I;
if (headers[x].contains(LOG_VS_M)) vsLogUnits = LOG_VS_M; if (headers[x].contains(LOG_VS_M)) vsLogUnits = LOG_VS_M;
} }
LOGGER.trace("DYNO log file conversions: Time Column: " + timeCol + ", Time X: " + timeMult +
", RPM Column: " + rpmCol + ", TA Column: " + taCol + ", VS Column: " + vsCol +
", VS units: " + vsLogUnits);
while ((line = inputStream.readLine()) != null) { while ((line = inputStream.readLine()) != null) {
String[] values = line.split(delimiter); String[] values = line.split(delimiter);
if (Double.parseDouble(values[taCol]) > 98) { if (Double.parseDouble(values[taCol]) > 98) {
@ -1042,7 +1045,7 @@ public final class DynoControlPanel extends JPanel {
maxRpm = Math.max(maxRpm, calculateRpm(logRpm, rpm2mph, vsLogUnits)); maxRpm = Math.max(maxRpm, calculateRpm(logRpm, rpm2mph, vsLogUnits));
} }
chartPanel.addRawData(logTime, logRpm); chartPanel.addRawData(logTime, logRpm);
// LOGGER.trace(sample + "," + logTime + "," + speed); LOGGER.trace("DYNO log file time: " + logTime + ", speed: " + logRpm);
} }
} }
inputStream.close(); inputStream.close();