mazda: sync CX-9 cruise set speed with cluster for PXM7 PCM - #7
Open
maxzzznz wants to merge 1 commit into
Open
Conversation
maxzzznz
marked this pull request as ready for review
August 25, 2026 01:05
|
Hey @maxzzznz , can you send the logs used to validate this to me on discord? |
|
@maxzzznz Is this fixed for you in latest main/develop? |
Author
Just tested it unfortunately not fixed still have the discrepency on develop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cruiseState.speedProblem
On a 2022 New Zealand-market CX-9 with PCM firmware
PXM7-188K2-E, the set speed shown by ZoomPilot was consistently below the cluster value. The error grew with speed: roughly 2 km/h at moderate speeds and 3 km/h at 100 km/h.This also means that when Speed Limit Assist applies a detected speed limit through ICBM, the vehicle’s cruise set speed can end up approximately 2–3 km/h higher than the requested limit, with the discrepancy increasing at higher speeds.
The shared Mazda DBC decodes
CRZ_EVENTS.CRZ_SPEEDas:The route samples from this PXM7 CX-9 instead match:
Extracted from real frames (route can be shared privately if needed):
This explains why the mismatch is proportional rather than a fixed rounding error. In terms of the already-decoded DBC value, the PXM7 conversion is equivalent to:
Scope
The correction is deliberately gated on both:
MAZDA_CX9_2021(the platform entry covering 2021-23 CX-9s)PXM7-188K2-This targets the observed Oceania/export PCM family without changing the shared DBC or relying on the user's metric-display preference. A North American CX-9 owner reported that the existing scale is already correct, so PXM4 firmware remains on the current path.
Because this changes the published
cruiseState.speed, downstream consumers such as the UI and cruise-button management receive the cluster-correct setpoint; this is not only an on-screen offset.Tests