From 7c22ae1f324adda12bcdc678fc0019aa03af07ee Mon Sep 17 00:00:00 2001 From: Daniel Wilms Date: Tue, 31 May 2022 15:00:32 +0300 Subject: [PATCH] Motorbike signals as additional layer As discussed previously, mixing different kinds vehicles in one vspec structure might lead to too generic structures and confusion. One way to achieve such variety is through profiles as overlayes. This is a first proposal on how it could look like, open for discussion. Signed-off-by: Daniel Wilms --- overlays/profiles/motorbike.vspec | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 overlays/profiles/motorbike.vspec diff --git a/overlays/profiles/motorbike.vspec b/overlays/profiles/motorbike.vspec new file mode 100644 index 000000000..5df39eb4b --- /dev/null +++ b/overlays/profiles/motorbike.vspec @@ -0,0 +1,45 @@ +# +# (C) 2022, Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +# +# All files and artifacts in this repository are licensed under the +# provisions of the license provided by the LICENSE file in this repository. +# +# +# This file contains adoptions to the main spec concering motorbikes. +# It mainly addresses istantiation issues (e.g. wheels) and +# additional signals, which are motorbike specific (e.g. handlebars). +# +# Currently this file serves as a very early draft, which serves +# more as an example of overlays and is not considered a part of the +# official specification. + + +# Branches used for the structure, not adopted in any way +Vehicle: + type: branch + +Vehicle.Chassis: + type: branch + +Vehicle.Chassis.Axle: + type: branch + +# Changed instantiation +Vehicle.Chassis.Axle.Wheel: + type: branch + instances: ["Center"] + +# Branches used for the structure, not adopted in any way +Vehicle.Cabin: + type: branch + +# Additional cabin information +Vehicle.Cabin.Handlebar: + type: branch + description: Branch for the handlebar of a motorbike. + +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. \ No newline at end of file