Board index FlightGear Development Add-ons

Question disable Nav/adf/Com subsystem

FlightGear has support for add-ons, to further extend the simulator's core functionality.

Question disable Nav/adf/Com subsystem

Postby www2 » Thu Oct 28, 2021 4:08 am

Is there a way yo disable subsystem in flightgear.
A project that i current working on a new model and for testing i wand to use "Course deviation indicator" and "Automatic direction finder" in C172p for displaying the output of my code for testing with out chaining the code of C172p.
www2
 
Posts: 319
Joined: Thu Apr 16, 2009 2:58 pm
OS: Ubuntu

Re: Question disable Nav/adf/Com subsystem

Postby Hooray » Thu Oct 28, 2021 6:37 pm

CDI instruments can be driven by other inputs/subsystems, including Nasal and property rules or external interfaces/data.

The corresponding C++ machinery for these hard-coded instruments is usually initialized/set up by including a matching instrumentation config - this was at least the idea back in the early days of the project - back then, most aircraft would reference stuff like $FG_ROOT/Aircraft/Generic/generic-instrumentation.xml

Not sure if this is still the case, but you can refer to the source code to see for yourself - many good ideas originally implemented and integrated in FlightGear got basically lost over the course of almost two decades now - including support for saving/loading and resuming flights, as well as support for reliably resetting the simulator.

David Megginson implemented most of the infrastructure for this stuff almost 20 years ago, with a ton of foresight - but many things were never really adopted or took years/decades to be used, even today, most of David's work would be pretty useful - but we're only just beginning to properly see SGSubsystem* and friends being widely used, with reset/re-init related methods often still being empty stubs/placeholders - and with supporting loading/resuming flights never having been a declared priority of the project since the departure of some of the early founding fathers of the project.
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

Re: Question disable Nav/adf/Com subsystem

Postby Jack1995 » Mon Nov 29, 2021 12:12 pm

Probably yes with the use of the code, but with the default tools it seems that is not possible...
Jack1995
 
Posts: 3
Joined: Tue Nov 23, 2021 5:19 pm


Return to Add-ons

Who is online

Users browsing this forum: No registered users and 1 guest