alpha117

ATC Background Chatter Files

47 posts in this topic

Marcus,

The files are played in sequence out of the folders.  If you have 100 files in a folder, the first time you select that controller, you might get files 1 through 15.  The next time you select that controller, you should get 16 through xxx.  By the time you get to 100, you're supposed to have forgotten file 1.

If the files were played randomly, there's a much better chance of getting the same file played multiple times while on a frequency with that controller.  Of course, the assumption is that with the Controllers option, you have a large number of files in each folder.

0

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

What If pseudo code 

; variables 

FileToPlay=Array of Chars[5]; 

Int NumFilesInFolder

Using Integers,  FolderNums are:

Clearance=folder(0),DepGnd=folder(1),DepTower= folder(2),Departure=Folder(3),Tracon1=Folder(4),Tracon2=Folder(3),etc,etc,Arrival=Folder(n), ArrivTwr=Folder(n+1),ArrvalGnd=folder(n+2).

FileToPlay(0)=FolderNum;

FileToPlay(1)T or F to be assigned  name of “ABP” (Already been played) to be converted to Bool?;

FileToPlay(2-4) is int up to 999;if Len(FileToPlay(2-4)<3,pad with leading “0s” to equal 3 chars so we can use Abs(STR2NUM(Mid(FileToPlay(3,3)))) to extract proper file integer

 

Initialization

1. For each loop counting number of ATC folders=NumFolders 

A.For each loop through each NumFolder counting files=NumFilesInFolder

B..DO for each file in each folder assign in CHAR array( ABP, NumFolders,NumFilesInFolder);

1. ABP initially set to “F”

———-

Program Run( Pilot2ATC)

C. for next loop

Generate rnd(NumFilesInFolder)+1

1. Check for ABP(left(FileToPlay(1);

2. playing appropriate next ATC file;if NOT ABP ; after playing, set file ABP to “T”

a. Set above ABP  To “T” and PlayedFiles to PlayedFiles +1

b. If PlayedFiles(in each folder) == NumFiles-1, reset PlayedFiles to 0

check for folder(n) for proper ATC folder , go to right FolderNum, and do it all again

§§§§§§§§§§§

— E.G. 

1.check for appropriate ATC FOLDER

Example of FileToPlay(3T123)= Deptarture,“ABP” (Already been played-SKIP to file 124-

If 124’s ABP NOT “T” , play it and set ABP to “T”) 

loop

§§§§§§§§

 I know there are more than several errors AND typos in my logic, but I think you get the idea; which is: maximized random play from each ATC folder without repeating until all files in each ATC folder are played, then auto-looping infinitely.

 

Forgive my old fart faulty coding memory

If it makes no sense, then as Emily Litella and APG Fak Checker, Dingus said, 

“Neverminnnnd!”

Chas

 

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now