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

VSS add-on coordination (mapping) #11

Open
erikbosch opened this issue Apr 27, 2023 · 1 comment
Open

VSS add-on coordination (mapping) #11

erikbosch opened this issue Apr 27, 2023 · 1 comment

Comments

@erikbosch
Copy link
Collaborator

erikbosch commented Apr 27, 2023

This is a topic originating from the Porto AMM

There are multiple initiatives using VSS syntax to add extended attributes. Two examples are KUKSA.val (map DBC to VSS) and COVESA AASIG (map Android VHAL to/from VSS). There is a possibility that a platform/project need to use multiple mappings, and then it is important that there are no name conflicts.

COVESA could address this by:

  • Providing guidelines, for example that all attributes are to be added under a single "namespace"
  • Maintain a list of already taken/used "namespaces".
  • Possibly "host" some "namespace" definitions, i.e. the definition of sub-attributes and syntax for them

With this, inspired by the two examples below, it would be possible to include multiple mappings in the same tree (after applying overlays), like:


Vehicle.Chassis.SteeringWheel.Angle:
  datatype: int16
  type: sensor
  dbc:
    signal: SteeringAngle129
    interval_ms: 100
    transform:
      math: "floor(x+0.5)"
  vhal:
    aospId: VehicleProperty::PERF_VEHICLE_SPEED
    aospArea: VehicleArea::GLOBAL
    multiplier: 0.27777777777777777777  # (divide by 3.6)
    offset: 0.0

Existing examples:

https://github.com/COVESA/vss-tools/blob/code_generation/contrib/vspec2aaproperties/vspec2prop_mapping.yml

Vehicle.Speed:
  #convertFloatLinear
  aospId: VehicleProperty::PERF_VEHICLE_SPEED
  aospArea: VehicleArea::GLOBAL
  multiplier: 0.27777777777777777777  # (divide by 3.6)
  offset: 0.0

https://github.com/eclipse/kuksa.val.feeders/blob/main/dbc2val/mapping/mapping.md
https://github.com/eclipse/kuksa.val.feeders/blob/main/dbc2val/mapping/vss_3.1.1/dbc_overlay.vspec

Vehicle.Chassis.SteeringWheel.Angle:
  datatype: int16
  type: sensor
  dbc:
    signal: SteeringAngle129
    interval_ms: 100
    transform:
      math: "floor(x+0.5)"
@erikbosch erikbosch changed the title VSS add-on coordination VSS add-on coordination (mapping) Apr 28, 2023
@erikbosch
Copy link
Collaborator Author

Discussion:

  • Erik: Stored in DEG github?
  • Ulf: Could make sense

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

No branches or pull requests

1 participant