* Curtis Olson -- Tuesday 21 November 2006:
> Anyone out there have any special thoughts about building a hobbs meter
> subsystem for FlightGear.
> 
> I am thinking about adding a load/save mechanism similar to the
> ~/.fgfs/autosave.xml system.
> 
> When FG starts up, you load the accumulated time out of a file.  As you run,
> you increment the time.  Periodically (maybe every 1 or 5 minutes) write out
> a file with the most up to date run time.

If writing the value is only required when exiting fgfs, then
autosave.xml would be good enough. It would only miss flying
hours that ended with a segfault, which shouldn't really happen
anyway.  ;-)

Otherwise extra files would be needed. I could implement either,
now that prop.setAttribute("USERARCHIVE", 1) is available.

m.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to