Hydraulics: init with some accumulator pressure
This commit is contained in:
parent
328b11980c
commit
2611f3d3a2
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ var HYD = {
|
|||
lcont: 0,
|
||||
rcont: 0,
|
||||
Brakes: {
|
||||
accumPressPsi: props.globals.initNode("/systems/hydraulic/yellow-accumulator-psi-cmd", 0, "INT"),
|
||||
accumPressPsi: props.globals.initNode("/systems/hydraulic/yellow-accumulator-psi-cmd", 3000, "INT"),
|
||||
leftPressPsi: props.globals.initNode("/systems/hydraulic/brakes/pressure-left-psi", 0, "INT"),
|
||||
rightPressPsi: props.globals.initNode("/systems/hydraulic/brakes/pressure-right-psi", 0, "INT"),
|
||||
mode: props.globals.initNode("/systems/hydraulic/brakes/mode", 0, "INT"),
|
||||
|
@ -74,6 +74,7 @@ var HYD = {
|
|||
me.Switch.rat.setValue(0);
|
||||
me.Switch.yellowEDP.setValue(1);
|
||||
me.Switch.yellowElec.setValue(0);
|
||||
me.Brakes.accumPressPsi.setValue(3000);
|
||||
},
|
||||
resetFail: func() {
|
||||
me.Fail.blueElec.setBoolValue(0);
|
||||
|
@ -109,7 +110,7 @@ var HYD = {
|
|||
me.Brakes.accumPressPsi.setValue(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Braking Pressure
|
||||
if (notification.brakesMode == 1 or (notification.brakesMode == 2 and notification.green >= 2500)) {
|
||||
# Normal braking - Green OK
|
||||
|
|
Loading…
Reference in a new issue