From bafffc963293ebf3393a588067e69df4fe60d83f Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Mon, 26 Jun 2023 10:19:30 +0200 Subject: [PATCH] Add door position Inspired by DOOR_POS in Android Signed-off-by: Erik Jaegervall --- spec/Cabin/SingleDoor.vspec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spec/Cabin/SingleDoor.vspec b/spec/Cabin/SingleDoor.vspec index bc70fcd2e..c62d0eef3 100644 --- a/spec/Cabin/SingleDoor.vspec +++ b/spec/Cabin/SingleDoor.vspec @@ -12,13 +12,22 @@ IsOpen: datatype: boolean type: actuator - description: Is door open or closed + description: Is door open or closed. True = Open (fully or partial). False = Fully closed IsLocked: datatype: boolean type: actuator description: Is door locked or unlocked. True = Locked. False = Unlocked. +Position: + datatype: uint8 + type: actuator + min: 0 + max: 100 + unit: percent + description: Door position. 0 = Fully closed 100 = Fully opened. + +#include SingleSliderSwitch.vspec # # Window description