예제 #1
0
파일: MainForm.cs 프로젝트: pongpot/NavSim
        private void timer1_Tick(object sender, EventArgs e)
        {
            //MessageBox.Show("Time is up!!!");
            Program.airportBinding.AptGetData();

            Encode Test = new Encode();

            byte[]           data = Test.EncodeData(Program.airportConfig, datacount++);
            BcastTransmitter bTx  = new BcastTransmitter(
                "TX01", Program.globalConfig.Tx.RemoteIP, Convert.ToInt32(Program.globalConfig.Tx.RemotePort));

            bTx.Transmit(data);

            //Console.WriteLine("data test {0}", BitConverter.ToString(data));
            Console.WriteLine("data test == {0}", Test.CheckRPUEnable(Program.airportConfig));

            //debugRunway(0);
            //debugRpu(0);
        }