Skip to content

fix: stop dyno sweeps folding in falling RPM - #214

Merged
tzebrowski merged 1 commit into
mainfrom
fix/dyno-sweep-contamination
Aug 30, 2026
Merged

fix: stop dyno sweeps folding in falling RPM#214
tzebrowski merged 1 commit into
mainfrom
fix/dyno-sweep-contamination

Conversation

@tzebrowski

Copy link
Copy Markdown
Owner

Two issues made the virtual dyno under-report torque near the top of a sweep (e.g. 409 Nm shown at 5450 RPM where the log holds 465 Nm).

extractPulls only ended a pull when the pedal dropped below pedalStart, so a lift that stays above the threshold - or a WOT upshift - kept feeding falling-RPM, low-torque samples into bins the sweep had already covered. Track the sweep's peak RPM and close the pull once RPM falls more than RPM_DROP_TOLERANCE below it, letting the next sample start a fresh pull. An upshift now yields one pull per gear.

computeDynoPoints smoothed over array indices, but empty bins are omitted, so the nominal +/-2 bin (+/-100 RPM) window spanned ~450 RPM wherever bins were sparse - smearing the contaminated bins into clean ones. Skip bins further than SMOOTH_WINDOW * BIN_SIZE away in RPM.

Two issues made the virtual dyno under-report torque near the top of a
sweep (e.g. 409 Nm shown at 5450 RPM where the log holds 465 Nm).

extractPulls only ended a pull when the pedal dropped below pedalStart,
so a lift that stays above the threshold - or a WOT upshift - kept
feeding falling-RPM, low-torque samples into bins the sweep had already
covered. Track the sweep's peak RPM and close the pull once RPM falls
more than RPM_DROP_TOLERANCE below it, letting the next sample start a
fresh pull. An upshift now yields one pull per gear.

computeDynoPoints smoothed over array indices, but empty bins are
omitted, so the nominal +/-2 bin (+/-100 RPM) window spanned ~450 RPM
wherever bins were sparse - smearing the contaminated bins into clean
ones. Skip bins further than SMOOTH_WINDOW * BIN_SIZE away in RPM.
@tzebrowski
tzebrowski merged commit d82a7ce into main Aug 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant