1
0
Fork 0

Added a flight-hour-meter property in /instrumentation/clock .... saves your flight time to file... (thanks Melchior)

This commit is contained in:
sydadams 2007-07-07 23:10:00 +00:00
parent 96a8a9657f
commit a3fdbf8456
2 changed files with 787 additions and 793 deletions

View file

@ -60,13 +60,7 @@ if(getprop("/sim/flight-model")=="yasim"){
if(pph == nil){pph = 0.0};
FuelPph2.setValue(pph* FuelDensity);
}else{
tanks = props.globals.getNode("consumables/fuel").getChildren("tank");
for(i=0; i<size(tanks); i=i+1){
tmp = tanks[i].getNode("level-lb");
lbs = tmp.getValue();
tanks[i].getNode("level-lbs").setValue(lbs);
total_fuel += lbs;
}
total_fuel=props.globals.getNode("/fdm/jsbsim/propulsion/total-fuel-lbs").getValue();
setprop("consumables/fuel/total-fuel-lbs",total_fuel);
}
}

File diff suppressed because it is too large Load diff