Skip to content

Fuel average affected by idling #1

Description

@thatdevsherry

Fuel average is supposed to show the average when car is in motion.

Glancing at the code, it appears I've missed out the check for updating "fuel_used_motion_ul`. It should only update when vehicle speed is greater than 0.

So presumably both fuel_used_motion_ul and fuel_used_total_ul come out to same value.

Fix by adding a check to only update fuel_used_motion_ul when VSS > 0. fuel_used_total_ul is for total fuel use, fuel_used_motion_ul is for fuel used when moving and is what's used for fuel average calculation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions