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

Adding new sensors to powertrain battery and fuel system. #536

Merged
merged 4 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions spec/Powertrain/Battery.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ StateOfCharge.Displayed:
max: 100.00
description: State of charge displayed to the customer.

StateOfCharge.CurrentEnergy:
type: sensor
datatype: float
unit: kWh
description: Physical state of charge of high voltage battery expressed in kWh.
comment: Current energy could be calculated as .StateOfCharge.Current * .NetCapacity.

NominalVoltage:
datatype: uint16
type: attribute
Expand Down Expand Up @@ -182,6 +189,7 @@ Charging.ChargeLimit:
type: actuator
min: 0
max: 100
default: 100
unit: percent
description: Target charge limit (state of charge) for battery.

Expand Down
10 changes: 8 additions & 2 deletions spec/Powertrain/FuelSystem.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,17 @@ TankCapacity:
unit: l
description: Capacity of the fuel tank in liters.

Level:
AbsoluteLevel:
datatype: float
type: sensor
unit: l
description: Current available fuel in the fuel tank expressed in liters.

RelativeLevel:
datatype: uint8
type: sensor
unit: percent
min: 0
min: 0
max: 100
description: Level in fuel tank as percent of capacity. 0 = empty. 100 = full.

Expand Down