From: ThorstenB Date: Sun, 15 Jul 2012 17:02:05 +0000 (+0200) Subject: Restore ATIS reception with nav receivers. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4c3b77f152da9f968ad608f482b098f5e6c5d82;p=flightgear.git Restore ATIS reception with nav receivers. nav radios can be used for comm reception - mainly to receive ATIS. This had worked with FG 2.6, but was lost in the ATCMgr->ATISMgr conversion. --- diff --git a/src/ATCDCL/ATISmgr.cxx b/src/ATCDCL/ATISmgr.cxx index bfe1e6314..0df65051e 100644 --- a/src/ATCDCL/ATISmgr.cxx +++ b/src/ATCDCL/ATISmgr.cxx @@ -39,7 +39,7 @@ using flightgear::CommStation; FGATISMgr::FGATISMgr() : _currentUnit(0), - _maxCommRadios(2), + _maxCommRadios(4), #ifdef ENABLE_AUDIO_SUPPORT voice(true), voice1(0) @@ -82,7 +82,11 @@ void FGATISMgr::init() for (unsigned int unit = 0;unit < _maxCommRadios; ++unit) { CommRadioData data; - string ncunit = "comm[" + decimalNumeral(unit) + "]"; + string ncunit; + if (unit < _maxCommRadios/2) + ncunit = "comm[" + decimalNumeral(unit) + "]"; + else + ncunit = "nav[" + decimalNumeral(unit - _maxCommRadios/2) + "]"; string commbase = "/instrumentation/" + ncunit; string commfreq = commbase + "/frequencies/selected-mhz";