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>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
x:Name="ButtonPauseHP"
|
x:Name="ButtonSendWarning"
|
||||||
Grid.Row="8"
|
Grid.Row="9"
|
||||||
Grid.Column="10"
|
Grid.Column="11"
|
||||||
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
||||||
ToolTip="pause HP"
|
ToolTip="Send Warning"
|
||||||
Click="btnSend_pauseHP"
|
Click="btnSend_warning"
|
||||||
Height="30"
|
Height="30"
|
||||||
Width="30">
|
Width="30" Margin="30,49,13,-39">
|
||||||
<materialDesign:PackIcon Kind="MotionPause"/>
|
<materialDesign:PackIcon Kind="Alert"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
x:Name="ButtonResumeHP"
|
x:Name="ButtonSetInterdictionRadius"
|
||||||
Grid.Row="8"
|
Grid.Row="9"
|
||||||
Grid.Column="11"
|
Grid.Column="6"
|
||||||
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
||||||
ToolTip="pause HP"
|
ToolTip="set interdiction radius"
|
||||||
Click="btnSend_resumeHP"
|
Click="btnSend_setInterdictionRadius"
|
||||||
Height="30"
|
Height="30"
|
||||||
Width="30">
|
Width="30" Grid.ColumnSpan="3" Margin="45,40,35,-30">
|
||||||
<materialDesign:PackIcon Kind="Resume"/>
|
<materialDesign:PackIcon Kind="RadiusOutline"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -401,6 +401,9 @@
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<TextBox
|
||||||
|
x:Name="SetInterdictionRadius"
|
||||||
|
materialDesign:HintAssist.Hint="InterdictionRadius" Width="56"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</Window>
|
</Window>
|
||||||
|
|
|
@ -136,20 +136,20 @@ namespace dummy_drone
|
||||||
nad.NADSearchAtPos(SetLatitudeHP.Text, SetLongitudeHP.Text, SetAltitudeHP.Text, SetRadiusHP.Text);
|
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)
|
//private void btnSend_stopHP(object sender, RoutedEventArgs e)
|
||||||
{
|
//{
|
||||||
nad.NADStopSearchAt();
|
// nad.NADStopSearchAt();
|
||||||
}
|
//}
|
||||||
|
|
||||||
private void btnSend_startFM(object sender, RoutedEventArgs e)
|
private void btnSend_startFM(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue