]> git.mxchange.org Git - flightgear.git/commitdiff
Brian Schack:
authorcurt <curt>
Mon, 1 Dec 2008 13:58:04 +0000 (13:58 +0000)
committercurt <curt>
Mon, 1 Dec 2008 13:58:04 +0000 (13:58 +0000)
Right now, atlas.cxx uses the following code, in
FGAtlas::gen_message(), to retrieve the ADF frequency:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/kr-87/outputs/selected-khz", true);

I think it should be changed to:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/adf/frequencies/selected-khz", true);

src/Network/atlas.cxx

index e2eb510dceac66aa2667473e99dc4f68daf692ff..e1e7d55bc50bde8d489fb39c541562a0aead67de 100644 (file)
@@ -69,7 +69,7 @@ bool FGAtlas::gen_message() {
     // cout << "generating atlas message" << endl;
 
     static SGPropertyNode *adf_freq
-        = fgGetNode("/instrumentation/kr-87/outputs/selected-khz", true);
+        = fgGetNode("/instrumentation/adf/outputs/selected-khz", true);
     static SGPropertyNode *nav_freq
         = fgGetNode("/instrumentation/nav/frequencies/selected-mhz", true);
     static SGPropertyNode *nav_sel_radial