1
0
Fork 0
fgdata/Aircraft
curt 6ab2bca4ef Add a variant of the high res c172 rpm gauge that includes a working
LCD hobbs meter (instead of the previous "static" hobbs meter that was pretty
but didn't ever change.)  This requires some aircraft specific nasal support
since the hobbs meter isn't implemented in the same way on every aircraft:

# initialize the hobbs meter and configure to save every 5 minutes
var hobbs = aircraft.timer.new("/instrumentation/clock/hobbs-meter-sec");
aircraft.data.save(5);
hobbs.stop();

setlistener( "/engines/engine[0]/running",
    func {
	var running = getprop("/engines/engine[0]/running");
	if ( running ) {
	    hobbs.start();
	} else {
	    hobbs.stop();
	}
    }
);
setlistener( "/instrumentation/clock/hobbs-meter-sec",
    func {
	var secs = getprop("/instrumentation/clock/hobbs-meter-sec");
	setprop("/instrumentation/clock/hobbs-meter-hours", secs / 3600);
    },
    1
);
2009-04-22 18:11:23 +00:00
..
c172p Set minthrottle to 0.1 for latest JSBSim engine codec172-sound.xml 2009-04-13 11:47:06 +00:00
Generic Remove leading "/" 2009-01-16 17:02:41 +00:00
Instruments Add a variant of the high res c172 rpm gauge that includes a working 2009-04-22 18:11:23 +00:00
Instruments-3d texture update 2009-04-17 04:19:51 +00:00
ufo don't start with "camera view", as the radar doesn't work there at the moment 2009-03-17 22:37:19 +00:00