Ejemplo n.º 1
0
        //Tells timer what to do when delay is met
        private static void OnTimedEvent(Object source, ElapsedEventArgs e)
        {
            //Spin.Turn();
            // Display the read text to the console
            string temp;

            if ((temp = srToGUI.ReadLine()) != null)
            {
                Console.WriteLine("Received from server: {0}", temp);
                if (temp != "Connection Successful!")
                {
                    ARINCMessage received = new ARINCMessage();
                    //received.ToBitArray(temp);
                    Console.WriteLine(temp);
                }
            }
        }
Ejemplo n.º 2
0
        public string ArincGearStatus()
        {
            string LGStatusData = "";

            A429GearStatus.TryGetValue(GlobalGearStatus(), out LGStatusData);
            ARINCMessage NewMessage;

            if (GlobalGearStatus() != "GEAR MISMATCH")
            {
                NewMessage = new ARINCMessage("NO", LGStatusData, "FCC", "LandingGear_Status", true);
            }
            else
            {
                NewMessage = new ARINCMessage("FW", LGStatusData, "FCC", "LandingGear_Status", true);
            }
            return(NewMessage.ToString());
        }