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

Extend motorbike profile and include profiles in builds #487

Merged
merged 1 commit into from
Sep 27, 2022
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
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# Makefile to generate specifications
#

.PHONY: clean all travis_targets json franca yaml csv ddsidl tests binary protobuf ttl graphql ocf c install
.PHONY: clean all travis_targets json franca yaml csv ddsidl tests binary protobuf ttl graphql ocf c install overlays

all: clean json franca yaml csv ddsidl binary tests protobuf graphql
all: clean json franca yaml csv ddsidl binary tests protobuf graphql overlays

# All mandatory targets that shall be built and pass on each pull request for
# vehicle-signal-specification or vss-tools
travis_targets: clean json franca yaml binary csv graphql ddsidl tests tar
travis_targets: clean json franca yaml binary csv graphql ddsidl overlays tests tar


# Additional targets that shall be built by travis, but where it is not mandatory
Expand Down Expand Up @@ -37,6 +37,11 @@ csv:
ddsidl:
${TOOLSDIR}/vspec2ddsidl.py -I ./spec ./spec/VehicleSignalSpecification.vspec vss_rel_$$(cat VERSION).idl

# Verifies that supported overlay combinations are syntactically correct.
overlays:
${TOOLSDIR}/vspec2json.py -I ./spec -o overlays/profiles/motorbike.vspec ./spec/VehicleSignalSpecification.vspec vss_rel_$$(cat VERSION)_motorbike.json
${TOOLSDIR}/vspec2json.py -I ./spec -o overlays/extensions/dual_wiper_systems.vspec ./spec/VehicleSignalSpecification.vspec vss_rel_$$(cat VERSION)_dualwiper.json

tests:
PYTHONPATH=${TOOLSDIR} pytest

Expand Down
48 changes: 47 additions & 1 deletion overlays/profiles/motorbike.vspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# (C) 2022, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# (C) 2022 Robert Bosch GmbH
#
# All files and artifacts in this repository are licensed under the
# provisions of the license provided by the LICENSE file in this repository.
Expand Down Expand Up @@ -42,4 +43,49 @@ Vehicle.Cabin.Handlebar.GripHeating:
type: sensor
datatype: string
allowed: ["HEATING_OFF", "HEATING_STEP_1", "HEATING_STEP_2", "HEATING_STEP_3", "HEATING_STEP_4", "HEATING_STEP_5", "HEATING_AUTOMATIC"]
description: Grip Heating Status in motorbikes. The signal shows if the handlebar grip heating is on or not, and if yes, to which level.
description: Grip Heating Status in motorbikes. The signal shows if the handlebar grip heating is on or not, and if yes, to which level.

Vehicle.LeanAngle:
type: sensor
datatype: float
unit: degrees
description: Lean Angle of the Motorcycle in Y direction. 0 = upright,
positive = leaning right from rider perspective,
negative = leaning left from rider perspective.

Vehicle.IMU:
type: branch
description: Information related to the Inertial Measurement Unit to record angular rates and velocity-related information.

Vehicle.IMU.IsOK:
type: sensor
datatype: boolean
description: Indicates if IMU is working. True = OK. False = Failure.

Vehicle.ADAS:
type: branch

# Motorbikes typically have different ABS-systems for front and rear wheel
Vehicle.ADAS.ABS:
type: branch
instances: ["Front","Rear"]

Vehicle.Powertrain:
type: branch

Vehicle.Powertrain.Transmission:
type: branch

Vehicle.Powertrain.Transmission.IsClutchSwitchOperated:
type: sensor
datatype: boolean
description: Indicates if the Clutch switch is operated, so engine and transmission are partially or fully decoupled. False = Clutch switch not operated. True = Clutch switch operated.

Vehicle.Powertrain.CombustionEngine:
type: branch

Vehicle.Powertrain.CombustionEngine.FuelInjectionQuantity:
type: sensor
datatype: float
unit: ml
description: Amount of injected Fuel in millilitres per cylinder per injection.