Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr committed Apr 4, 2023
1 parent be20f03 commit fab9cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<button id="serialdisconnect" class="btn btn-primary" disabled>Disconnect</button>
</div>
</div>
<a id="data-download">Download</a>

<div class="row border data-container overflow-auto" id="init-data-container">
<div class="col">
Expand Down
10 changes: 5 additions & 5 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,18 @@ async function serialConnect() {
updateGuiValue(liveData.egrDutyCycle, (egr) => liveDataEgrDutyCycle.innerHTML = egr + " A/D count");
updateGuiValue(liveData.fuelPulsewidth, (fuelPulsewidth) => liveDataFuelPulsewidth.innerHTML = fuelPulsewidth + " clock ticks");
updateGuiValue(liveData.totalSparkAdvance, (totalSparkAdvance) => liveDataIgnitionTiming.innerHTML = totalSparkAdvance + "°");
updateGuiValue(liveData.speed, (speed) => liveDataSpeed.innerHTML = speed + " km/h");
updateGuiValue(liveData.speedUnfiltered, (speed) => liveDataSpeedUnfiltered.innerHTML = speed + " km/h");
updateGuiValue(liveData.airCharge, (airCharge) => liveDataAirCharge.innerHTML = airCharge + " %");
updateGuiValue(liveData.lambda1, (lambda) => liveDataLambda.innerHTML = lambda);
updateGuiValue(liveData.speed, (speed) => liveDataSpeed.innerHTML = speed.toFixed(1) + " km/h");
updateGuiValue(liveData.speedUnfiltered, (speed) => liveDataSpeedUnfiltered.innerHTML = speed.toFixed(1) + " km/h");
updateGuiValue(liveData.airCharge, (airCharge) => liveDataAirCharge.innerHTML = airCharge.toFixed(2) + " %");
updateGuiValue(liveData.lambda1, (lambda) => liveDataLambda.innerHTML = lambda.toFixed(4));
updateGuiValue(liveData.ego1, (ego) => liveDataEgo.innerHTML = ego + " A/D count");
updateGuiValue(liveData.barometricPressure, (bp) => liveDataBarometricPressure.innerHTML = bp + " inHg");
updateGuiValue(liveData.manifoldAbsolutePressure, (map) => liveDataManifoldAbsolutePressure.innerHTML = map + " inHg");
updateGuiValue(liveData.calibrationInputVoltage, (voltage) => liveDataCalibrationVoltage.innerHTML = voltage + " A/D count");
updateGuiValue(liveData.transmissionOilTemperature, (temp) => liveDataTransmissionOilTemperature.innerHTML = temp + " A/D count");
updateGuiValue(liveData.scap, (scap) => liveDataScap.innerHTML = scap + " A/D count");
updateGuiValue(liveData.idleSpeedDutyCycle, (dutyCycle) => liveDataIdleSpeed.innerHTML = dutyCycle + " A/D count");
updateGuiValue(liveData.adaptiveFuelCorrection, (correction) => liveDataAdaptiveFuelCorrection.innerHTML = correction + " A/F");
updateGuiValue(liveData.adaptiveFuelCorrection, (correction) => liveDataAdaptiveFuelCorrection.innerHTML = correction.toFixed(4) + " A/F");
updateGuiValue(liveData.desiredRpm, (rpm) => liveDataDesiredRpm.innerHTML = rpm);
updateGuiValue(liveData.ratch, (ratch) => liveDataRatch.innerHTML = ratch);
updateGuiValue(liveData.timeSinceStartup, (time) => liveDataTimeSinceStartup.innerHTML = time + " s");
Expand Down

0 comments on commit fab9cef

Please sign in to comment.