scale_report_dial_values

Function scale_report_dial_values 

Source
pub fn scale_report_dial_values(
    report: &MultiTruingReport,
    dial_cf: f64,
) -> MultiTruingReport
Expand description

MBA-1358: express a multi-observation truing report’s dial-unit values back in SCOPE units for display. The stored CF is the published tall-target ratio actual / dialed (0.95 = under-tracks 5%), so a dialed reading of D scope units delivers D * CF true units: the fit consumes observations MULTIPLIED by the CF (true angular units), and this converts the report’s observed/predicted/residual drops and the RMS back to scope units by DIVIDING by dial_cf — the rendered tables echo what the shooter actually dials. Fit results (MV/BC), iteration diagnostics, and the meter-denominated window fields are deliberately untouched (they are not dial-unit outputs). dial_cf == 1.0 (no CF, or --drop-unit in — linear tape measurements never scale) divides by exactly 1.0, leaving every downstream byte identical. pub (not pub(crate)): shared by the native CLI (main.rs) and the WASM terminal (wasm.rs) so the two surfaces cannot drift, and host-testable (wasm.rs itself is wasm32-gated).