コード例 #1
0
ファイル: Program.cs プロジェクト: yph0011/MissionPlanner
        public static void Main(string[] args)
        {
            if (args.Length > 0 && args[0] == "fw")
            {
                Solo.getFirmwareUrl().Wait();
                return;
            }

            var alive = Solo.is_solo_alive;

            if (!alive)
            {
                Console.WriteLine("Solo is not responding to pings");
                return;
            }

            var logs = Solo.GetLogNames();

            foreach (var log in logs)
            {
                Console.WriteLine(log);

                //Solo.DownloadDFLog(log, log);
            }

            var file = Solo.getFirmwareUrl();

            //Solo.flash_px4(@"C:\temp\ArduCopter-v2.px4");

            while (!file.IsCompleted)
            {
                System.Threading.Thread.Sleep(1000);
            }
        }
コード例 #2
0
        public static void Main(string[] args)
        {
            var alive = Solo.is_solo_alive;

            var logs = Solo.GetLogNames();

            foreach (var log in logs)
            {
                Console.WriteLine(log);

                //Solo.DownloadDFLog(log, log);
            }

            var file = Solo.getFirmwareUrl();

            //Solo.flash_px4(@"C:\temp\ArduCopter-v2.px4");

            while (!file.IsCompleted)
            {
                System.Threading.Thread.Sleep(1000);
            }
        }