eclipse / kuksa.val.feeders

kuksa.val.feeders
Apache License 2.0
8 stars 22 forks source link

Question regarding new approach to define DBC mapping #59

Closed sophokles73 closed 1 year ago

sophokles73 commented 1 year ago

I have created a VSS overlay with the following definitions:

Vehicle.Tachograph.Driver:
  type: branch
  instances:
  - Driver[1,2]
  description: Information about the driver(s) of a (commercial) vehicle.

Vehicle.Tachograph.Driver.Identification:
  datatype: string
  type: attribute
  description: The unique identification of a driver in a Member State.
  comment: |
    This fields is formatted according the definition for driverIdentification
    in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b.

Now I would like to use the new approach to map signalA to Vehicle.Tachograph.Driver.Driver1.Identification and signalB to Vehicle.Tachograph.Driver.Driver2Identification.

Can I simply also put a definition like the following into the overlay file?

Vehicle.Tachograph.Driver.Driver1.Identification:
  datatype: string
  type: attribute
  dbc:
    signal: signalA

Vehicle.Tachograph.Driver.Driver2.Identification:
  datatype: string
  type: attribute
  dbc:
    signal: signalB
sophokles73 commented 1 year ago

Ok, I simply tried it out and it seems to work. The vspec2json tools creates a JSON file that has the mapping info in the correct place.