From c1db1e35258b96f74305e95bdcc282b73a16b6c7 Mon Sep 17 00:00:00 2001 From: xu Date: Fri, 8 May 2020 22:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=8F=98=E8=89=B2=E7=81=AF?= =?UTF-8?q?=E5=85=89=20=E5=8A=A0=E5=85=A5=E5=A4=9A=E6=AC=A1=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=B5=8B=E8=AF=95=E7=81=AF=E5=85=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Formation/FlightTaskSingleCopterInfo_LED.cs | 2 ++ Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs | 2 +- Plane.FormationCreator/Views/ModifyTaskView.xaml | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs b/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs index 239bd65..ec16bc3 100644 --- a/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs +++ b/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs @@ -164,6 +164,8 @@ namespace Plane.FormationCreator.Formation { LEDTestRun = false; _commModuleManager.LED_TaskAsync(255, 0, 0, "000000", this.Copter); + _commModuleManager.LED_TaskAsync(255, 0, 0, "000000", this.Copter); + _commModuleManager.LED_TaskAsync(255, 0, 0, "000000", this.Copter); } })); diff --git a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs index a9e8f3d..77be4e4 100644 --- a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs +++ b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs @@ -1514,7 +1514,7 @@ namespace Plane.FormationCreator.ViewModels Color color = (Color)ColorConverter.ConvertFromString("#" + ledInfo.LEDRGB); int ledMode = ledInfo.LEDMode; //拉烟任务模式ID是50,需要改为50 - if (ledMode == 11) ledMode = 50; + if (ledMode == 15) ledMode = 50; IMission LEDMission = Mission.CreateLEDControlMission( (int)(ledInfo.Delay * 10), ledMode, diff --git a/Plane.FormationCreator/Views/ModifyTaskView.xaml b/Plane.FormationCreator/Views/ModifyTaskView.xaml index 65084bd..86fa3c7 100644 --- a/Plane.FormationCreator/Views/ModifyTaskView.xaml +++ b/Plane.FormationCreator/Views/ModifyTaskView.xaml @@ -512,6 +512,13 @@ + + + + + + +