You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @erikbosch
I am trying to exclude few child node. And I tried
Cabin.vspec
Door:
type: branch
instances:
- Row[1,2]
- ["DriverSide","PassengerSide"]
description: All doors, including windows and switches
#include SingleDoor.vspec Door
Door.SomeSignal:
datatype: uint8
type: attribute
instantiate: false
description: A door signal that should not be instantiated.
But this is still not excluding the child node. Can you please guide in it if I am missing anything else?
Thanks!
VSS_TOOLS_VERSION = 4.1
The text was updated successfully, but these errors were encountered:
It depends a bit on what you want to do. The instantiate: false keyword is intended to exclude a signal from instantiation. Taking IsChildLockActive as example. If you (in a fork or in an overlay) specify instantiate: false you will get one signal entry as result:
erik@debian6:~/vehicle_signal_specification$ egrep -ni ischildlock *.csv
580:"Vehicle.Cabin.Door.IsChildLockActive","sensor","boolean","","","","","Is door child lock active. True = Door cannot be opened from inside. False = Door can be opened from inside.","","",""
... rather than 4 ...
erik@debian6:~/vehicle_signal_specification$ egrep -ni ischildlock *.csv
590:"Vehicle.Cabin.Door.Row1.DriverSide.IsChildLockActive","sensor","boolean","","","","","Is door child lock active. True = Door cannot be opened from inside. False = Door can be opened from inside.","","",""
604:"Vehicle.Cabin.Door.Row1.PassengerSide.IsChildLockActive","sensor","boolean","","","","","Is door child lock active. True = Door cannot be opened from inside. False = Door can be opened from inside.","","",""
619:"Vehicle.Cabin.Door.Row2.DriverSide.IsChildLockActive","sensor","boolean","","","","","Is door child lock active. True = Door cannot be opened from inside. False = Door can be opened from inside.","","",""
633:"Vehicle.Cabin.Door.Row2.PassengerSide.IsChildLockActive","sensor","boolean","","","","","Is door child lock active. True = Door cannot be opened from inside. False = Door can be opened from inside.","","",""
VSS-tools 4.2 introduced the ability to delete nodes. It was not well documented in VSS documentation, so I added some more documentation in #763
That can be used to delete a single instance/signal combination like this:
Hello @erikbosch
I am trying to exclude few child node. And I tried
Cabin.vspec
Door:
type: branch
instances:
- Row[1,2]
- ["DriverSide","PassengerSide"]
description: All doors, including windows and switches
#include SingleDoor.vspec Door
Door.SomeSignal:
datatype: uint8
type: attribute
instantiate: false
description: A door signal that should not be instantiated.
But this is still not excluding the child node. Can you please guide in it if I am missing anything else?
Thanks!
VSS_TOOLS_VERSION = 4.1
The text was updated successfully, but these errors were encountered: