diff --git a/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs b/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs index 25fb3ce..d118e23 100644 --- a/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs +++ b/Plane.FormationCreator/Formation/FlightTaskSingleCopterInfo_LED.cs @@ -123,7 +123,7 @@ namespace Plane.FormationCreator.Formation { Thread.Sleep((int)vLEDInfo.Delay * 1000); if (!LEDTestRun) break; - _commModuleManager.LED_TaskAsync(vLEDInfo.LEDMode, vLEDInfo.LEDRate, vLEDInfo.LEDTimes, vLEDInfo.LEDRGB, this.Copter); + _commModuleManager.LED_TaskAsync(vLEDInfo.LEDMode, vLEDInfo.LEDInterval, vLEDInfo.LEDTimes, vLEDInfo.LEDRGB, this.Copter); } //LEDTestRun = false; }); @@ -170,7 +170,7 @@ namespace Plane.FormationCreator.Formation { private double delay = 1; //灯光延时 单位:100ms (从当前任务开为0,延时几秒后设置LED) private int ledmode = 0; //灯光模式 0常亮 1闪烁 2随机闪烁(RGB无意义) - private float ledRate = 0; //闪烁延时 单位:100ms + private float ledInterval = 0; //闪烁延时 单位:秒 private int ledtimes = 0; //次数 (预留、暂取消其意义) private string ledRGB = "FFFFFF"; //灯光颜色 @@ -183,7 +183,7 @@ namespace Plane.FormationCreator.Formation { delay = led.delay; ledmode = led.ledmode; - ledRate = led.ledRate; + ledInterval = led.ledInterval; ledRGB = led.ledRGB; } public double Delay @@ -197,10 +197,10 @@ namespace Plane.FormationCreator.Formation get { return ledmode; } set { ledmode = value; } } - public float LEDRate + public float LEDInterval { - get { return ledRate; } - set { ledRate = value; } + get { return ledInterval; } + set { ledInterval = value; } } public int LEDTimes { diff --git a/Plane.FormationCreator/ViewModels/ConnectViewModel.cs b/Plane.FormationCreator/ViewModels/ConnectViewModel.cs index fd98549..85fddef 100644 --- a/Plane.FormationCreator/ViewModels/ConnectViewModel.cs +++ b/Plane.FormationCreator/ViewModels/ConnectViewModel.cs @@ -285,7 +285,7 @@ namespace Plane.FormationCreator.ViewModels IMission LEDMission = Mission.CreateLEDControlMission( (int)(ledInfo.Delay * 10), ledInfo.LEDMode, - ledInfo.LEDRate, + ledInfo.LEDInterval, 0, //ledInfo.LEDTimes, color.R, color.G, diff --git a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs index dd9f77b..756ecfb 100644 --- a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs +++ b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs @@ -1518,7 +1518,7 @@ namespace Plane.FormationCreator.ViewModels IMission LEDMission = Mission.CreateLEDControlMission( (int)(ledInfo.Delay * 10), ledMode, - ledInfo.LEDRate, + ledInfo.LEDInterval, 0, //ledInfo.LEDTimes, color.R, color.G, diff --git a/Plane.FormationCreator/Views/ModifyTaskView.xaml b/Plane.FormationCreator/Views/ModifyTaskView.xaml index 1544286..d11d36a 100644 --- a/Plane.FormationCreator/Views/ModifyTaskView.xaml +++ b/Plane.FormationCreator/Views/ModifyTaskView.xaml @@ -308,7 +308,8 @@ - + @@ -322,7 +323,8 @@ - + @@ -340,9 +342,11 @@ - + - +