起飞测试高度
开放了些参数 灯光测试界面
This commit is contained in:
parent
b836322a15
commit
a8eb01bfb3
@ -21,7 +21,7 @@ namespace Plane.FormationCreator.Formation
|
||||
public int AddCopter(ICopter entityObject)
|
||||
{
|
||||
////给第三方时候限制数量和时间用
|
||||
DateTime dateTime2019 = DateTime.Parse("2019-09-20");
|
||||
DateTime dateTime2019 = DateTime.Parse("2020-01-20");
|
||||
|
||||
//新增飞机区域限制:内蒙
|
||||
// if (entityObject.Latitude < 37.4307185218 || entityObject.Latitude > 45.6754821756
|
||||
|
@ -24,15 +24,15 @@ namespace Plane.FormationCreator
|
||||
public ModifyParam()
|
||||
{
|
||||
InitializeComponent();
|
||||
if (!VersionControl.IsFullVersion)
|
||||
{
|
||||
hide_panel.Visibility = Visibility.Collapsed;
|
||||
textParamName.IsReadOnly = true;
|
||||
btnLoad.Visibility = Visibility.Collapsed;
|
||||
|
||||
label.Visibility = Visibility.Collapsed;
|
||||
textParamName.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
// if (!VersionControl.IsFullVersion)
|
||||
// {
|
||||
// hide_panel.Visibility = Visibility.Collapsed;
|
||||
// textParamName.IsReadOnly = true;
|
||||
// btnLoad.Visibility = Visibility.Collapsed;
|
||||
//
|
||||
// label.Visibility = Visibility.Collapsed;
|
||||
// textParamName.Visibility = Visibility.Collapsed;
|
||||
// }
|
||||
}
|
||||
|
||||
private void btnModify_Click(object sender, RoutedEventArgs e)
|
||||
|
@ -54,6 +54,12 @@ namespace Plane.FormationCreator.ViewModels
|
||||
set { Set(nameof(AltP), ref _AltP, value); }
|
||||
}
|
||||
|
||||
private float _TaskOffAlt = 10;
|
||||
public float TaskOffAlt
|
||||
{
|
||||
get { return _TaskOffAlt; }
|
||||
set { Set(nameof(TaskOffAlt), ref _TaskOffAlt, value); }
|
||||
}
|
||||
|
||||
private string _RTKState = "RTK未发送";
|
||||
public string RTKState
|
||||
@ -365,8 +371,9 @@ namespace Plane.FormationCreator.ViewModels
|
||||
{
|
||||
return _GuidAsyncCommand ?? (_GuidAsyncCommand = new RelayCommand(async () =>
|
||||
{
|
||||
if (TaskOffAlt <= 0) return;
|
||||
if (_copterManager.AcceptingControlCopters != null && _copterManager.AcceptingControlCopters.Count() > 0)
|
||||
await _commModuleManager.TakeOffAsync(10, _copterManager.AcceptingControlCopters);
|
||||
await _commModuleManager.TakeOffAsync(TaskOffAlt, _copterManager.AcceptingControlCopters);
|
||||
/*
|
||||
await Task.WhenAll(_copterManager.AcceptingControlCopters.Select(async c =>
|
||||
{
|
||||
|
@ -89,6 +89,8 @@
|
||||
<Button Content="正式灯光"
|
||||
Command="{Binding TurnOffTestLightsCommand}"
|
||||
Visibility="Collapsed"/>
|
||||
<TextBox Width="30" Text="{Binding TaskOffAlt}"
|
||||
/>
|
||||
<Label Visibility="Collapsed">Lat</Label>
|
||||
<TextBox Visibility="Collapsed" Text="{Binding LatOffset}" Width="50"/>
|
||||
<Label Visibility="Collapsed">Lng</Label>
|
||||
@ -140,7 +142,7 @@
|
||||
|
||||
<Button Content="{Binding Path=NTRIPbtntxt}"
|
||||
Command="{Binding SendRTCMCommand}"
|
||||
Visibility="Collapsed"/>
|
||||
/>
|
||||
<TextBlock
|
||||
Margin="5,5,5,5"
|
||||
Text="{Binding Path=RTKState}"
|
||||
|
@ -51,7 +51,7 @@ namespace Plane.FormationCreator.Views
|
||||
gmap.MaxZoom = 30; //最大缩放
|
||||
gmap.Zoom = 19; //当前缩放
|
||||
gmap.ShowCenter = false; //不显示中心十字点
|
||||
gmap.DragButton = MouseButton.Left; //左键拖拽地图
|
||||
gmap.DragButton = MouseButton.Middle; //左键拖拽地图
|
||||
gmap.Position = new LatLng(40.07734857737275, 116.34323845862502).ToGCJ02();
|
||||
|
||||
_mapManager.MapView = this;
|
||||
|
@ -305,31 +305,33 @@
|
||||
|
||||
<StackPanel x:Name="lightDesign">
|
||||
<StackPanel Orientation="Horizontal" Margin="0,5,0,5" >
|
||||
<TextBlock Margin="5,7,0,0" Text="变换颜色"/>
|
||||
<TextBox Margin="5,5,40,3" Width="60" Text="{Binding ChangeRGB}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="起始时间"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding BeginTime}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="结束时间"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding EndTime}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="分层"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding AverageSum}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="变换颜色"/>
|
||||
<TextBox Margin="5,5,0,3" Width="60" Text="{Binding ChangeRGB}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="结束颜色"/>
|
||||
<TextBox Margin="5,5,0,3" Width="60" Text="{Binding EndRGB}"/>
|
||||
<Button Width="80" Content="灯带" Margin="10,0,0,0"
|
||||
Command="{Binding SetHorseRaceLampCommand}" HorizontalAlignment="Right"/>
|
||||
|
||||
</StackPanel>
|
||||
<Grid >
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal" Margin="0,2,0,0">
|
||||
<TextBlock Margin="5,7,0,0" Text="结束颜色"/>
|
||||
<TextBox Margin="5,5,40,3" Width="60" Text="{Binding EndRGB}" ToolTip="设置为0,表示变换后回到原色"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="起始时间"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding StrokesTime}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="频率"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding IntervalTime}"/>
|
||||
<TextBlock Margin="5,7,0,0" Text="变换数量"/>
|
||||
<TextBox Margin="5,5,0,3" Width="30" Text="{Binding SingleNum}"/>
|
||||
|
||||
<Button Width="70" Content="灯光"
|
||||
|
||||
<Button Width="80" Content="跑马灯" Margin="10,0,0,0"
|
||||
Command="{Binding SetStrokesLampCommamd}" HorizontalAlignment="Right"/>
|
||||
</StackPanel>
|
||||
<Button Width="80" Content="跑马灯"
|
||||
Command="{Binding SetHorseRaceLampCommand}" HorizontalAlignment="Right"/>
|
||||
|
||||
</Grid>
|
||||
<Separator/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
@ -33,7 +33,7 @@ namespace Plane.FormationCreator.Views
|
||||
this.DataContext = _modifyTaskViewModel;
|
||||
if (!VersionControl.IsFullVersion)
|
||||
{
|
||||
lightDesign.Visibility = Visibility.Collapsed;
|
||||
//lightDesign.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user