Lights: Manage warning lights better

This commit is contained in:
Sidi Liang 2022-09-11 16:21:51 +08:00
parent 86b8609b44
commit ee4e68036b
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ vehicleInformation.lighting.indicator.leftSwitch = vehicleInformation.lighting.i
vehicleInformation.lighting.indicator.rightSwitch = vehicleInformation.lighting.indicator.getNode("right_switch", 1);
vehicleInformation.lighting.indicator.left = vehicleInformation.lighting.getNode("indicator-left", 1);
vehicleInformation.lighting.indicator.right = vehicleInformation.lighting.getNode("indicator-right", 1);
vehicleInformation.lighting.warningLight = props.getNode("/warninglight/start");
#//Systems
vehicleInformation.systems = props.getNode("/systems", 1);
@ -106,6 +107,7 @@ vehicleInformation.lighting.indicator.left.setValue(0);
vehicleInformation.lighting.indicator.right.setValue(0);
vehicleInformation.lighting.indicator.left.setValue(0);
vehicleInformation.lighting.indicator.right.setValue(0);
vehicleInformation.lighting.warningLight.setValue(0);
#//Systems
vehicleInformation.systems.welcomeMessage.setValue(0);