Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #5160 #5164

Merged
merged 1 commit into from Mar 8, 2023
Merged

fix #5160 #5164

merged 1 commit into from Mar 8, 2023

Conversation

mck1117
Copy link
Member

@mck1117 mck1117 commented Mar 8, 2023

send lambda properly over OBD2

fix #5160

@mck1117 mck1117 marked this pull request as ready for review March 8, 2023 21:37
@rusefillc
Copy link
Contributor

this PR is red

@mck1117
Copy link
Member Author

mck1117 commented Mar 8, 2023

looks like a fluke, and one I've never seen before

image

float lambda = Sensor::getOrZero(SensorType::Lambda1);
// phi = 1 / lambda
float phi = clampF(0, 1 / lambda, 1.99f);
float lambda = clampF(0, Sensor::getOrZero(SensorType::Lambda1), 1.99f);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why 1.99f vs e.g. 1.9999f -- I realize "< 2 ratio" is the concern; is the extra "top end" not really worth?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nobody is running an engine anywhere near 2.0 lambda anyway

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I figured.
also wondering, does rusEFI ever report the voltage (bytes CD) for OBD2 PIDs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Not much reason to unless you're doing "real" diagnosis using OBD2. We support OBD2 pretty much exclusively for gauges/dashes/apps/etc, not real diagnosis.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We support OBD2 pretty much exclusively for gauges/dashes/apps/etc, not real diagnosis.

This statement is an important fact but it seems not captured in doc yet.
Is it ok that I add it to https://wiki.rusefi.com/CAN/ ?

@rusefillc rusefillc merged commit f16f0bd into rusefi:master Mar 8, 2023
55 checks passed
mi-hol added a commit to rusefi/rusefi_documentation that referenced this pull request Mar 20, 2023
rusefillc pushed a commit to rusefi/rusefi_documentation that referenced this pull request Mar 20, 2023
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.

CAN bus AFR value inverted
4 participants