Esempio n. 1
0
 private void OnAirspaceContentUpdated(object o, AirspaceContentEventArgs args)
 {
     Debug.Log("Monitor: Handling TransponderDataReady Event");
     foreach (var f in args.UpdatedFlights)
     {
         FTDataPoint dp = f.GetNewestDataPoint();
         Console.WriteLine("Tag: " + dp.Tag + " Pos: " + dp.X + "," + dp.Y + " Altitude: " + dp.Altitude + " Time: " + dp.TimeStamp + " Velocity: " + f.GetCurrentVelocity());
     }
 }
Esempio n. 2
0
        private void OnAirspaceContentUpdated(object sender, AirspaceContentEventArgs e)
        {
            List <IFlightTrack> flights = e.AirspaceContent;

            var gridstring       = GenerateAirspaceGrid(flights);
            var flightliststring = GenerateAirspaceFlightList(flights);

            _monitor.UpdateDisplaySection("AirspaceGrid", gridstring);
            _monitor.UpdateDisplaySection("AirspaceFlightList", flightliststring);
        }