ciribob/DCS-CTLD

ADF Beacon Refresh

Opened this issue · 0 comments

Not sure if DCS changed in 2.7 or 2.8. I vaguely recall the ADF needle pointing consistently.
Now it only points when the beacon.ogg file is running.

The issue is that the hard-coded refresh cycle in ctld.refreshRadioBeacons() was 30 seconds and beacon.ogg runs for 31 seconds. So an odd sync issue happened for me.

I added a global var ctld.beaconRefreshPeriod = 65 to allow the refresh to wait till the longest ogg file (beaconsilent.ogg) completed and use that in the function. Now the ADF needle deflects for the ogg run period and waits till refresh to run again. Seems to be usable.