Skip to content
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ yaml:
${TOOLSDIR}/vspec2yaml.py -I ./spec -o overlays/DIMO/dimo.vspec --uuid -u ./spec/units.yaml ./spec/VehicleSignalSpecification.vspec vss_rel_$(VSS_VERSION).yaml

csv:
${TOOLSDIR}/vspec2csv.py -I ./spec -o overlays/DIMO/dimo.vspec --uuid -u ./spec/units.yaml ./spec/VehicleSignalSpecification.vspec vss_rel_$(VSS_VERSION).csv
${TOOLSDIR}/vspec2csv.py -I ./spec -vt overlays/DIMO/types.vspec -o overlays/DIMO/dimo.vspec --uuid -u ./spec/units.yaml ./spec/VehicleSignalSpecification.vspec vss_rel_$(VSS_VERSION).csv

ddsidl:
${TOOLSDIR}/vspec2ddsidl.py -I ./spec -o overlays/DIMO/dimo.vspec --uuid -u ./spec/units.yaml ./spec/VehicleSignalSpecification.vspec vss_rel_$(VSS_VERSION).idl
Expand Down
4 changes: 4 additions & 0 deletions overlays/DIMO/dimo.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Vehicle.DIMO.Aftermarket:
description: holds information about the aftermarket dimo device
#include aftermarket.vspec Vehicle.DIMO.Aftermarket

Vehicle.CurrentLocation.Coordinates:
type: sensor
datatype: Types.DIMO.Coordinates
description: Current location of the vehicle in WGS 84 coordinates.

Vehicle.DIMO.Subject:
type: sensor
Expand Down
34 changes: 34 additions & 0 deletions overlays/DIMO/types.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Types:
type: branch
description: Type definitions

Types.DIMO:
type: branch
description: DIMO-specific types

Types.DIMO.Coordinates:
type: struct
description: A struct datatype representing GNSS position.

Types.DIMO.Coordinates.Latitude:
datatype: double
type: property
min: -90
max: 90
unit: degrees
description: Latitude in WGS 84 coordinates.

Types.DIMO.Coordinates.Longitude:
datatype: double
type: property
min: -180
max: 180
unit: degrees
description: Longitude in WGS 84 coordinates.

Types.DIMO.Coordinates.HDOP:
datatype: double
type: property
min: 0
unit: ratio
description: Horizontal dilution of position. May be zero if this was not measured.
Loading