Compare commits
1 Commits
Dev
...
兼容4.1.2以前的
Author | SHA1 | Date | |
---|---|---|---|
3445c08e8c |
@ -1513,8 +1513,8 @@ namespace Plane.FormationCreator.ViewModels
|
||||
{
|
||||
Color color = (Color)ColorConverter.ConvertFromString("#" + ledInfo.LEDRGB);
|
||||
int ledMode = ledInfo.LEDMode;
|
||||
//拉烟任务模式ID是50,需要改为50
|
||||
if (ledMode == 11) ledMode = 50;
|
||||
//老版本是8,新版是11 拉烟任务模式ID是50,需要改为50
|
||||
if (ledMode == 8) ledMode = 50;
|
||||
IMission LEDMission = Mission.CreateLEDControlMission(
|
||||
(int)(ledInfo.Delay * 10),
|
||||
ledMode,
|
||||
|
@ -457,6 +457,7 @@
|
||||
<Button Content="测试/停止" VerticalAlignment="Center"
|
||||
Margin="0,5,5,0"
|
||||
Grid.Column="2"
|
||||
Visibility="Collapsed"
|
||||
Command="{Binding TestCopterLEDCommand}"
|
||||
/>
|
||||
|
||||
@ -504,14 +505,11 @@
|
||||
<ComboBoxItem Content="常亮" />
|
||||
<ComboBoxItem Content="同步闪烁(单色)" />
|
||||
<ComboBoxItem Content="异步闪烁(随机)" />
|
||||
<ComboBoxItem Content="同步闪烁(随机)" />
|
||||
<ComboBoxItem Content="异步闪烁(单色)" />
|
||||
<ComboBoxItem Content="渐亮" />
|
||||
<ComboBoxItem Content="渐暗" />
|
||||
<ComboBoxItem Content="呼吸灯(单色)" />
|
||||
<ComboBoxItem Content="呼吸灯(随机)" />
|
||||
<ComboBoxItem Content="异步呼吸(单色)" />
|
||||
<ComboBoxItem Content="异步呼吸(随机)" />
|
||||
<ComboBoxItem Content="同步闪烁(随机)" />
|
||||
<ComboBoxItem Content="异步闪烁(单色)" />
|
||||
<ComboBoxItem Content="拉烟"/>
|
||||
|
||||
</ComboBox>
|
||||
@ -521,9 +519,10 @@
|
||||
ToolTip="单位:秒,最小设置0.1秒"
|
||||
Text="{Binding Delay,UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock Text="间隔" Margin="12,0,0,0" VerticalAlignment="Center"></TextBlock>
|
||||
<TextBlock Text="频率" Margin="12,0,0,0" VerticalAlignment="Center"></TextBlock>
|
||||
<TextBox Height="25" MinWidth="35" MaxWidth="40" Margin="5,0,0,0"
|
||||
ToolTip="单位:秒,最小设置0.1秒"
|
||||
ToolTip="单位:HZ,最小设置1HZ"
|
||||
|
||||
Text="{Binding Path=LEDInterval, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock Text="颜色" Margin="12,0,0,0" VerticalAlignment="Center"></TextBlock>
|
||||
|
Loading…
Reference in New Issue
Block a user