Board index FlightGear Development Aircraft Systems

How are instruments loaded?

Modeling aircraft systems, like electrical stuff, hydraulics, pneumatics? Feel free to ask support.

How are instruments loaded?

Postby onox » Sat Oct 04, 2014 7:36 pm

I just noticed I have a /instrumentation/tacan device in my aircraft, but in another aircraft I don't. But in both aircraft I can find nothing about tacan. So where does this tacan device come from? And it's not just tacan, gps is also working even though I never added it. So does FlightGear implicitly load certain instruments?
onox
Retired
 
Posts: 431
Joined: Fri Jun 20, 2014 3:45 pm

Re: How are instruments loaded?

Postby Hooray » Sat Oct 04, 2014 8:28 pm

Yeah, hard-coded instruments are initialized by the so called "instrument manager" which reads in requested instruments/systems from the aircraft-set.xml file/property tree, a few default configurations are provided and stored in $FG_ROOT/Aircraft/

For details, see:

https://gitorious.org/fg/flightgear/sou ... r.cxx#L110

You'll see a few default instruments loaded via preferences.xml: https://gitorious.org/fg/fgdata/source/ ... s.xml#L454

Which in turn refers to :https://gitorious.org/fg/fgdata/source/Aircraft/Generic/generic-instrumentation.xml

Obviously, aircraft can specify their own defaults and override such settings - so the details depend on the your particular aircraft.

All this is done while booting, so wasn't designed to be supported at run-time - also, scripted Nasal instruments are a completely different mattter.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Systems

Who is online

Users browsing this forum: No registered users and 1 guest