Skip to content

Add fuel economy metrics#866

Merged
erikbosch merged 1 commit intoCOVESA:masterfrom
IVISolution:add-fuel-economy-metrics
Jan 7, 2026
Merged

Add fuel economy metrics#866
erikbosch merged 1 commit intoCOVESA:masterfrom
IVISolution:add-fuel-economy-metrics

Conversation

@InsangJang-ivis
Copy link
Contributor

Add fuel economy metrics.

type: actuator
description: Status of the fuel port flap(s). True if at least one is open.

InstantaneousFuelEconomy:
Copy link
Collaborator

@sschleemilch sschleemilch Nov 6, 2025

Choose a reason for hiding this comment

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

I would vote for grouping it in an Economy branch:

Economy:
  type:  branch
  description: ...

Economy.Live:
  ...

Economy.Cumulative:
  ...

Economy.Drive:
  ...

Economy.SinceRefuel:
  ...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest calling this signal InstantaneousFuelEconomy to match the existing signal InstantConsumption.

I have no strong opinion on if we should have them in a sub-branch. Can be discussed at the weekly meeting. But if so maybe we should also refactor the old signals, so that we e.g. get FuelEconomy.Instant and Consumption.Instant, i.e. same structure and naming for both.

Copy link
Collaborator

Choose a reason for hiding this comment

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

MoM:

  • Ted: From FMS /Trucks - you may have multiple fuelsystems, do we want cumulative fueleconomy or separated by fuel tank.
  • Erik: Think we should treat the "multi tank", "multi fuel" topic as a separate topic, PR/proposal welcome, related to Questions from FMS #859
  • T: For ev there is a factor for cumulative, new unit recently added
  • E: No need for subbranch
  • Decision: Change InstantaneousFuelEconomy to InstantantFuelEconomy
  • Then ok to merge

@erikbosch
Copy link
Collaborator

Thanks for the PR. I will bring it up at the next meeting

Things to discuss:

@erikbosch
Copy link
Collaborator

MoM

  • Please review/discuss

@erikbosch
Copy link
Collaborator

MoM:

  • E: Wants to take a second look and possibly propose some changes

This metric refreshes frequently and can fluctuate significantly based on driving conditions, acceleration, and terrain.
Unlike average fuel economy measurements, this provides immediate feedback on current driving efficiency.

CumulativeFuelEconomy:
Copy link
Collaborator

Choose a reason for hiding this comment

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

A bit similar idea as AverageConsumption but I like this name better so lets keep it

datatype: float
type: sensor
unit: km/l
description: Cumulative average fuel economy calculated from vehicle start or last user reset.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is meant with "vehicle start" here? Start of current trip or during "vehicle lifetime". I assume it should be "during vehicle lifetime" unless user has manually reset the signal, because it should not be automatically reset at "engine start", or?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should not be automatically reset at 'engine start'. The cumulative fuel economy can only be reset when the vehicle battery is discharged or reset. Generally, during the vehicle's lifetime, the vehicle battery is not discharged or reset, and the battery can be considered to remain intact. Here, 'vehicle start' refers to a state where the battery is maintained without being discharged or reset.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I understand it, so unless actively reset by user the value will be kept as long as possible, but may be implicitly reset if some battery is discharged or being replaced, if the system relies on always having power.

@erikbosch
Copy link
Collaborator

@InsangJang-ivis - in the last VSS meeting we agreed that it is ok to merge the PR if you do one change, so please update the PR:

  1. Decision: Change InstantaneousFuelEconomy to InstantantFuelEconomy

Copy link
Collaborator

@erikbosch erikbosch left a comment

Choose a reason for hiding this comment

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

Name change needed for one signal

Signed-off-by: unknown <janginsang@ivis.ai>
@InsangJang-ivis InsangJang-ivis force-pushed the add-fuel-economy-metrics branch from 24fd944 to cba72a6 Compare December 29, 2025 06:58
@InsangJang-ivis
Copy link
Contributor Author

Name change needed for one signal

Changed the signal name from InstantaneousFuelEconomy to InstantantFuelEconomy.

Copy link
Collaborator

@erikbosch erikbosch left a comment

Choose a reason for hiding this comment

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

OK to merge. As minor and previously discussed I will include this one to VSS 6.0 branch as well

@erikbosch erikbosch merged commit 3ede433 into COVESA:master Jan 7, 2026
5 checks passed
erikbosch pushed a commit that referenced this pull request Jan 7, 2026
Signed-off-by: unknown <janginsang@ivis.ai>
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.

3 participants