Updated dummy console with new command, send_waring and set_interdictionRadius
This commit is contained in:
parent
ddc5e8ff39
commit
77763ccb3e
|
@ -296,27 +296,27 @@
|
|||
</Button>
|
||||
|
||||
<Button
|
||||
x:Name="ButtonPauseHP"
|
||||
Grid.Row="8"
|
||||
Grid.Column="10"
|
||||
x:Name="ButtonSendWarning"
|
||||
Grid.Row="9"
|
||||
Grid.Column="11"
|
||||
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
||||
ToolTip="pause HP"
|
||||
Click="btnSend_pauseHP"
|
||||
ToolTip="Send Warning"
|
||||
Click="btnSend_warning"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<materialDesign:PackIcon Kind="MotionPause"/>
|
||||
Width="30" Margin="30,49,13,-39">
|
||||
<materialDesign:PackIcon Kind="Alert"/>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
x:Name="ButtonResumeHP"
|
||||
Grid.Row="8"
|
||||
Grid.Column="11"
|
||||
x:Name="ButtonSetInterdictionRadius"
|
||||
Grid.Row="9"
|
||||
Grid.Column="6"
|
||||
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
||||
ToolTip="pause HP"
|
||||
Click="btnSend_resumeHP"
|
||||
ToolTip="set interdiction radius"
|
||||
Click="btnSend_setInterdictionRadius"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<materialDesign:PackIcon Kind="Resume"/>
|
||||
Width="30" Grid.ColumnSpan="3" Margin="45,40,35,-30">
|
||||
<materialDesign:PackIcon Kind="RadiusOutline"/>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
@ -401,6 +401,9 @@
|
|||
|
||||
|
||||
</Grid>
|
||||
<TextBox
|
||||
x:Name="SetInterdictionRadius"
|
||||
materialDesign:HintAssist.Hint="InterdictionRadius" Width="56"/>
|
||||
</StackPanel>
|
||||
|
||||
</Window>
|
||||
|
|
|
@ -136,20 +136,20 @@ namespace dummy_drone
|
|||
nad.NADSearchAtPos(SetLatitudeHP.Text, SetLongitudeHP.Text, SetAltitudeHP.Text, SetRadiusHP.Text);
|
||||
}
|
||||
|
||||
private void btnSend_pauseHP(object sender, RoutedEventArgs e)
|
||||
private void btnSend_warning(object sender, RoutedEventArgs e)
|
||||
{
|
||||
nad.NADPauseSearchAt();
|
||||
nad.NADSendWarning("Battery low");
|
||||
}
|
||||
|
||||
private void btnSend_resumeHP(object sender, RoutedEventArgs e)
|
||||
private void btnSend_setInterdictionRadius(object sender, RoutedEventArgs e)
|
||||
{
|
||||
nad.NADResumeSearchAt();
|
||||
nad.NADSetInterdictionArea(SetInterdictionRadius.Text);
|
||||
}
|
||||
|
||||
private void btnSend_stopHP(object sender, RoutedEventArgs e)
|
||||
{
|
||||
nad.NADStopSearchAt();
|
||||
}
|
||||
//private void btnSend_stopHP(object sender, RoutedEventArgs e)
|
||||
//{
|
||||
// nad.NADStopSearchAt();
|
||||
//}
|
||||
|
||||
private void btnSend_startFM(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue