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

File structure refactoring draft #20

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
207 changes: 207 additions & 0 deletions spec/Vehicle.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
#
# (C) 2022 Robert Bosch GmbH
# (C) 2018 Volvo Cars
# (C) 2016 Jaguar Land Rover
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
#


#
# The vehicle branch for highlevel vehicle signals and attributes.
#
Vehicle:
type: branch
description: Root for vehicle data.


# Branches under Vehicle

#include Vehicle/VersionVSS.vspec Vehicle
#include Vehicle/VehicleIdentification.vspec Vehicle
#include Vehicle/LowVoltageBattery.vspec Vehicle
#include Vehicle/Acceleration.vspec Vehicle
#include Vehicle/AngularVelocity.vspec Vehicle
#include Vehicle/Trailer.vspec Vehicle
#include Vehicle/CurrentLocation.vspec Vehicle
#include Vehicle/Connectivity.vspec Vehicle
#include Vehicle/Exterior.vspec Vehicle
#include Vehicle/Service.vspec Vehicle


Vehicle.LowVoltageSystemState:
datatype: string
type: sensor
allowed: [
'UNDEFINED', # State of low voltage system not known
'LOCK', # Low voltage system off, steering lock or equivalent engaged
'OFF', # Low voltage system off, steering lock or equivalent not engaged
'ACC', # Vehicle Accessories on/living
'ON', # Engine start enabled (e.g. ignition on, diesel pre-heating, electrical drive released)
'START' # Engine starter relay closed (not applicable for electrical vehicles)
]
description: State of the supply voltage of the control units (usually 12V).


Vehicle.Speed:
datatype: float
type: sensor
unit: km/h
description: Vehicle speed.

Vehicle.TravelledDistance:
deprecation: V3.1 moved to Vehicle.TraveledDistance
datatype: float
type: sensor
unit: km
description: Odometer reading, total distance traveled during the lifetime of the vehicle.

Vehicle.TraveledDistance:
datatype: float
type: sensor
unit: km
description: Odometer reading, total distance traveled during the lifetime of the vehicle.

Vehicle.TraveledDistanceSinceStart:
datatype: float
type: sensor
unit: km
description: Distance traveled since start of current trip.
comment: A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The signal may however keep the value of the last trip until a new trip is started.

Vehicle.StartTime:
datatype: string
type: attribute
default: '0000-01-01T00:00Z'
description: Start time of current or latest trip, formatted according to ISO 8601 with UTC time zone.
comment: This signal is supposed to be set whenever a new trip starts.
A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The default value indicates that the vehicle never has been started, or that latest start time is unknown.

Vehicle.TripDuration:
datatype: float
type: sensor
unit: s
description: Duration of latest trip.
comment: This signal is not assumed to be continuously updated, but instead set to 0 when a trip starts
and set to the the actual duration of the trip when a trip ends.
A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.

Vehicle.TripMeterReading:
datatype: float
type: actuator
unit: km
description: Trip meter reading.
comment: The trip meter is an odometer that can be manually reset by the driver

Vehicle.IsBrokenDown:
datatype: boolean
type: sensor
description: Vehicle breakdown or any similar event causing vehicle to stop on the road,
that might pose a risk to other road users.
True = Vehicle broken down on the road, due to e.g. engine problems, flat tire, out of gas, brake problems.
False = Vehicle not broken down.
comment: Actual criteria and method used to decide if a vehicle is broken down is implementation specific.

Vehicle.IsMoving:
datatype: boolean
type: sensor
description: Indicates whether the vehicle is stationary or moving.

Vehicle.AverageSpeed:
datatype: float
type: sensor
unit: km/h
description: Average speed for the current trip.
comment: A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The signal may however keep the value of the last trip until a new trip is started.
Calculation of average speed may exclude periods when the vehicle for example is not moving or transmission is in neutral.



Vehicle.RoofLoad:
datatype: int16
type: attribute
unit: kg
description: The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.

Vehicle.CargoVolume:
datatype: float
type: attribute
unit: l
description: The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.
min: 0

Vehicle.EmissionsCO2:
datatype: int16
type: attribute
description: The CO2 emissions.
unit: g/km


#
# Vehicle Weight and Dimension attributes
#

Vehicle.CurrentOverallWeight:
datatype: uint16
type: sensor
unit: kg
description: Current overall Vehicle weight. Including passengers, cargo and other load inside the car.

Vehicle.CurbWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Vehicle curb weight, including all liquids and full tank of fuel, but no cargo or passengers.

Vehicle.GrossWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Curb weight of vehicle, including all liquids and full tank of fuel and full load of cargo and passengers.

Vehicle.MaxTowWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Maximum weight of trailer.

Vehicle.MaxTowBallWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Maximum vertical weight on the tow ball of a trailer.

Vehicle.Length:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle length.

Vehicle.Height:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle height.

Vehicle.Width:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle width.


39 changes: 39 additions & 0 deletions spec/Vehicle/Acceleration.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# (C) 2022 Robert Bosch GmbH
# (C) 2018 Volvo Cars
# (C) 2016 Jaguar Land Rover
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
#

#
# Spatial Acceleration
#


#
# Spatial Acceleration
#
Acceleration:
type: branch
description: Spatial acceleration. Axis definitions according to ISO 8855.

Acceleration.Longitudinal:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in X (longitudinal acceleration).

Acceleration.Lateral:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in Y (lateral acceleration).

Acceleration.Vertical:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in Z (vertical acceleration).

33 changes: 33 additions & 0 deletions spec/Vehicle/AngularVelocity.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# (C) 2022 Robert Bosch GmbH
# (C) 2018 Volvo Cars
# (C) 2016 Jaguar Land Rover
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
#

#
# Spatial Rotation
#
AngularVelocity:
type: branch
description: Spatial rotation. Axis definitions according to ISO 8855.

AngularVelocity.Roll:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along X (longitudinal).

AngularVelocity.Pitch:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along Y (lateral).

AngularVelocity.Yaw:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along Z (vertical).
8 changes: 7 additions & 1 deletion spec/Vehicle/Connectivity.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# and throughput.
#

IsConnectivityAvailable:
#
# Connectivity information
#
Connectivity:
type: branch

Connectivity.IsConnectivityAvailable:
datatype: boolean
type: sensor
description: Indicates if connectivity between vehicle and cloud is available.
Expand Down
66 changes: 66 additions & 0 deletions spec/Vehicle/CurrentLocation.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# (C) 2022 Robert Bosch GmbH
# (C) 2018 Volvo Cars
# (C) 2016 Jaguar Land Rover
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
#

#
# Location
#

CurrentLocation:
type: branch
description: The current latitude and longitude of the vehicle.

CurrentLocation.Timestamp:
datatype: string
type: sensor
description: Timestamp from GNSS system for current location, formatted according to ISO 8601 with UTC time zone.

CurrentLocation.Latitude:
datatype: double
type: sensor
min: -90
max: 90
unit: degrees
description: Current latitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.

CurrentLocation.Longitude:
datatype: double
type: sensor
min: -180
max: 180
unit: degrees
description: Current longitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.

CurrentLocation.Heading:
datatype: double
type: sensor
min: 0
max: 360
unit: degrees
description: Current heading relative to geographic north.
0 = North, 90 = East, 180 = South, 270 = West.

CurrentLocation.HorizontalAccuracy:
datatype: double
type: sensor
unit: m
description: Accuracy of the latitude and longitude coordinates.

CurrentLocation.Altitude:
datatype: double
type: sensor
unit: m
description: Current altitude relative to WGS 84 reference ellipsoid, as measured at the position of GNSS receiver antenna.

CurrentLocation.VerticalAccuracy:
datatype: double
type: sensor
unit: m
description: Accuracy of altitude.

#include CurrentLocation/GNSSReceiver.vspec CurrentLocation
28 changes: 28 additions & 0 deletions spec/Vehicle/CurrentLocation/GNSSReceiver.vspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# (C) 2022 Robert Bosch GmbH
# (C) 2018 Volvo Cars
# (C) 2016 Jaguar Land Rover
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
#

GNSSReceiver:
type: branch
description: Information on the GNSS receiver used for determining current location.

GNSSReceiver.FixType:
datatype: string
type: sensor
allowed: ['NONE',
'TWO_D',
'TWO_D_SATELLITE_BASED_AUGMENTATION',
'TWO_D_GROUND_BASED_AUGMENTATION',
'TWO_D_SATELLITE_AND_GROUND_BASED_AUGMENTATION',
'THREE_D',
'THREE_D_SATELLITE_BASED_AUGMENTATION',
'THREE_D_GROUND_BASED_AUGMENTATION',
'THREE_D_SATELLITE_AND_GROUND_BASED_AUGMENTATION']
description: Fix status of GNSS receiver.

#include GNSSReceiver/MountingPosition.vspec GNSSReceiver
Loading