Пример #1
0
        void testStartNav()
        {
            GalileoSDK sdk = new GalileoSDK();

            if (sdk.Connect("71329A5B0F2D68364BB7B44F3F125531E4C7F5BC3BCE2694DFE39B505FF9C730A614FF2790C1",
                            true, 10000, null,
                            null) != GALILEO_RETURN_CODE.OK)
            {
                Console.WriteLine("Connect to server failed");
            }
            while (true)
            {
                GalileoStatus status = sdk.GetCurrentStatus();
                Console.WriteLine("status: " + status.navStatus);
                Console.WriteLine("start nav");
                sdk.StartNav();
                Thread.Sleep(1000 * 20);
                status = sdk.GetCurrentStatus();
                Console.WriteLine("status: " + status.navStatus);
                Console.WriteLine("stop nav");
                sdk.StopNav();
                Thread.Sleep(1000 * 20);
                status = sdk.GetCurrentStatus();
                Console.WriteLine("status : " + status.navStatus);
            }
        }