VE Historical Log Normalizer

100% local MS3 Speed Density tuning suite — log parser, timestamp wideband aligner, BaroCor-only fuel audit, regularized bilinear WLS VE solver, Before-vs-After Drive Validation Comparator, and safe cloned .msq exporter.

Speed Density v3.0 Full Suite (Phases A+B+C) Zero Hardcoded Thresholds
A

Input Files & Props Loader

Waiting for MSQ & CSV

1. MS3 Tune (.msq)

None

Read-only XML parser. Your original .msq is never modified.

No tune loaded.

2. Datalogs (.csv)

0 files

Supports TunerStudio/MSDroid preambles, units rows & multi-CSV loading.

No datalogs loaded.

3. Properties (.props.json)

Defaults

External JSON driving 100% of CLT bounds, margins, alignment & solver rules.

Using built-in DEFAULT_PROPS (schema 2.0).
B

Tune & Table Selection (MSQ Verification)

No MSQ Baro: --
Load a MegaSquirt-3 .msq file in Section A to inspect detected constants, load algorithm, and VE/AFR table orientation.
C

CSV Column Mapping & Unit Normalization

No CSV loaded
Load one or more .csv datalogs in Section A to auto-map channels and verify temperature unit normalization (°F → °C).
D

Scenario, CLT & Cleaning Properties (PropsManager)

Quick Stability & Gap Presets
Restores strict engineering defaults for clean steady-state tuning.
Settings changed: tpsEnabled=true · mapEnabled=true · rpmEnabled=true · maxAbsTpsDot=5.0 %/s · maxAbsMapDot=30.0 kPa/s · smoothLoggedDerivatives=false · derivativeSmoothingSec=0.15s · maxAllowedSpikeFraction=0.0 · hardTipInTpsDot=15.0 %/s · tpsTriggersContamination=true · mapTriggersContamination=true · pre/post=0.50s/0.50s · maxTimeGapSec=0.50s

Physical Pre-Flight Checklist (Non-Inferable — Required for Verified Classification)

0 / 4 Confirmed (Not saved in props.json)
E

Cleaning & Verification Report

Not yet run
Load an MSQ + CSV and click Run Analysis (or load a props file) to inspect the cleaning funnel, MS3 PW1 & TotalCor verification audits, and tune compatibility.
F

VE Analysis Grid & WLS Solver

Iteration 2 Active
Not yet solved
Run analysis on a Speed Density .msq and datalog(s) to compute the regularized bilinear WLS candidate VE table.

Interactive Timeline Inspector (<canvas>)

No log loaded
Delay τ:
How to read this chart: The top pane plots engine state (RPM, MAP, TPS). The bottom pane compares Raw AFR (dashed) against Delay-Aligned AFR shifted forward by τ seconds to match exhaust travel time. Shaded red bands mark detected transients plus their pre/post contamination buffers; the bottom strip marks Verified, Clean, and Rejected rows.
Click any point to explain why it passed or was rejected
Wheel: Zoom • Drag: Pan • Hover: Inspect • Click: Explain reasons below
Run analysis to render the interactive multi-channel telemetry timeline.
Pan Scrubber 0.0s – 0.0s
G

Export Suite & Audit Traceability

Iteration 3 Active
Run analysis to unlock exports
Original .msq files are strictly read-only and never modified. All exports respect per-cell manual reverts, safety clamps, and the active dataset mode.

1. TunerStudio Native .table

XML

Native <tableGenerator> XML with ascending RPM/Load axes and row 0 = lowest kPa matching TunerStudio import expectations.

2. Candidate VE Table CSV

CSV

Clean spreadsheet-ready CSV with RPM header row and MAP_kPa column (highest kPa on top) for offline review or diffing.

3. Copyable TunerStudio Grid

TSV

Tab-separated values (highest kPa at top, lowest RPM on left) ready to paste directly into TunerStudio's VE table editor.

4. Candidate AFR Target Table

XML + TSV

Native TunerStudio afrTable1_candidate.table XML (row 0 = lowest kPa) and paste-ready TSV reflecting your UI AFR target edits.

5. Active Props Snapshot

JSON

Version-controllable ve_normalizer.props.json reproducing the exact Candidate VE output bit-for-bit on reload.

6. Full Audit & Traceability

JSON + MD

Complete audit embedding MSQ hash, CSVs, mappings, propsSnapshot, checklist, rejection stats, PW/TotalCor percentiles, VE & AFR simulation diffs, and sample traceability.

7. Non-Destructive Cloned .msq Patch Exporter

Phase A · Roundtrip Verified
Original .msq is never modified — downloads a fresh patched clone

Generates a brand-new TunerStudio-ready .msq clone preserving every untouched constant byte-for-byte, applying only the patches you check below, and running an automatic in-memory MSQParser.parse() roundtrip verification before download.

Run analysis to enable cloned .msq patch generation.
Done