This commit is contained in:
Sidi Liang 2021-04-25 20:43:36 +08:00
parent be848875cb
commit f17769cc1a
3 changed files with 5 additions and 7 deletions

View File

@ -23,7 +23,7 @@ var Engine = {
m.engineNode.mode = props.getNode("/controls/mode", 1);
followme.vehicleInformation.lighting.reverseIndicator = props.getNode("/controls/lighting/reverse_indicator", 1);;
m.reverseIndicatorNode = followme.vehicleInformation.lighting.reverseIndicator
m.reverseIndicatorNode = followme.vehicleInformation.lighting.reverseIndicator;
m.maxTorque = mTorque;
m.ratedPower = mPower;

View File

@ -31,11 +31,8 @@ vehicleInformation.engine.direction = props.getNode("/controls/direction", 1);
vehicleInformation.engine.mode = props.getNode("/controls/mode", 1);
#//Lignting
vehicleInformation.lighting = props.getNode("/controls/lighting", 1);;
vehicleInformation.lighting.reverseIndicator = followme.vehicleInformation.lighting.getNode("reverse_indicator", 1);
wiper.stateN = wiper.node.initNode("state", 0, "DOUBLE");
props.getNode("/",1).setValue("/controls/wiper/frontwiper_switch", 0);
vehicleInformation.lighting = props.getNode("/controls/lighting", 1);
vehicleInformation.lighting.reverseIndicator = vehicleInformation.lighting.getNode("reverse_indicator", 1);
props.getNode("/",1).setValue("/controls/lighting/indicator-left", 0);
props.getNode("/",1).setValue("/controls/lighting/indicator-right", 0);

View File

@ -72,7 +72,8 @@ var toggleWiper = func(){
wiperMid();
}
}
wiper.stateN = wiper.node.initNode("state", 0, "DOUBLE");
props.getNode("/",1).setValue("/controls/wiper/frontwiper_switch", 0);
#var Led = {
#
# new: func() { return { parents:[Led] },