Ejemplo n.º 1
0
        /// <summary>
        /// Create and run one random IFR Flight Sim and write a KML of it
        /// - just for testing..
        /// </summary>
        /// <returns>True if OK</returns>
        public bool RunIFRSim()
        {
            var awys  = AWYDB.GetSubtable(100, 47.17, 8.5); // just around here..
            var route = IFRroute.GetRandomFlight(awys, 1, "A333", "SIM");

            return(RunSimFromScript(route));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Dump the first 100 random IFR script start,end names
        /// </summary>
        public void DumpIFR()
        {
            var awys = AWYDB.GetSubtable(100, 47.17, 8.5); // just around here..

            using (var sw = new StreamWriter("IFRscrips.log", false)) {
                for (int i = 0; i < 100; i++)
                {
                    var route = IFRroute.GetRandomFlight(awys, 1, "A333", "SIM");
                    sw.WriteLine($"{i:000}\t{route.Descriptor.Start_IcaoID}\t{route.Descriptor.End_IcaoID}");
                }
            }
        }