Comments (5)
I am not sure if I fully understand the context of the issue. We do not have Vehicle.Timeincurrentrip
in the standard catalog. We have some trip-related data at https://github.com/COVESA/vehicle_signal_specification/blob/master/spec/Vehicle/Vehicle.vspec#L220
from vehicle_signal_specification.
Hi @erikbosch,
That is correct. I'm exploring the possibility of implementing mathematical operations on two standard signals to obtain their values when using the 'getValue' function on a third signal.
I've attached the current selected signal below. My question is whether we can perform mathematical operations on two standard signals within the 'math' field of another third signal.
Vehicle.Powertrain.TractionBattery.Charging.TimeToComplete:
type: "sensor"
datatype: "uint32"
unit: "s"
description: "Estimated time to full charge"
transform:
math: "((72 * (1 - x)) / ((y * 120) / 1000))"
parameters:
x: Vehicle.Powertrain.TractionBattery.StateOfCharge.Current
y: Vehicle.Powertrain.TractionBattery.Charging.ChargeRate
from vehicle_signal_specification.
That would be doable, it seems quite similar to what the Eclipse Kuksa project is doing when providing metadata fro CAN/DBC to VSS mapping, see https://github.com/eclipse-kuksa/kuksa-can-provider/blob/main/mapping/README.md.
But VSS/VSS-tools only help you with bringing the info to your target output format. Eclipse Kuksa for instance use vspec2json.py to convert the VSS catalog with the extra info given by an overlay. Then it traverse JSON itself and do what it does.
The possibility to express that a signal is derived from other signals and express how is mentioned as a useful feature now and then, but so far there have not been initiatives to standardize any specification format, or to create any helper features in vss-tools to validate/evaluate given info.
from vehicle_signal_specification.
Related Issues (20)
- Wheel angular velocity HOT 4
- Type Limitations? HOT 9
- VSS or HIM? HOT 5
- Types and datatypes HOT 3
- Release Planning 5.0 and 4.X HOT 6
- Support of multiple measurement units in VSS signals HOT 14
- In-Vehicle Notification signal for Infotainment HOT 2
- Enforce "style" for VSS standard catalog HOT 6
- Need for release-branches? HOT 11
- Ranges for Float and Double HOT 1
- Supported encoding for string values HOT 1
- Need for release tar-ball HOT 4
- Hydrofoil signals HOT 1
- Vehicle Error Codes HOT 2
- Representing signals in VSS tree HOT 2
- Inconsistent terminology - attributes, members, elements, meta data HOT 3
- typo in vspec v3.0 makes vss-tools 4.x fail HOT 2
- vehicle signal specification generated fidl is not recognized by commonapi. HOT 1
- Overlay childrens are not merged causing extensions_attributes missing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vehicle_signal_specification.