加入变色灯光

加入多次关闭测试灯光
This commit is contained in:
xu 2020-05-08 22:46:17 +08:00
parent f0ef8134d5
commit c1db1e3525
3 changed files with 10 additions and 1 deletions

View File

@ -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);
}
}));

View File

@ -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,

View File

@ -512,6 +512,13 @@
<ComboBoxItem Content="呼吸灯(随机)" />
<ComboBoxItem Content="异步呼吸(单色)" />
<ComboBoxItem Content="异步呼吸(随机)" />
<ComboBoxItem Content="变色(单色)" />
<ComboBoxItem Content="变色(随机)" />
<ComboBoxItem Content="异步变色(单色)" />
<ComboBoxItem Content="异步变色(随机)" />
<ComboBoxItem Content="拉烟"/>
</ComboBox>