You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
6.0 KiB
93 lines
6.0 KiB
<UserControl x:Class="RobotClientWpf.Views.ConfigView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:RobotClientWpf.Views"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="430" d:DesignWidth="1200" FontSize="15">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="120"/>
|
|
<RowDefinition Height="120"/>
|
|
<RowDefinition Height="130"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- SPLITFLAP -->
|
|
<GroupBox Grid.Row="0" Grid.Column="0" Header="SplitFlaps">
|
|
<DockPanel>
|
|
<GroupBox DockPanel.Dock="Left" Header="Configure Hardware IDs">
|
|
<DockPanel>
|
|
<Label VerticalAlignment="Center">0:</Label>
|
|
<TextBox x:Name="tbSf1" TextAlignment="Center" Width="30" Height="30" Margin="10 0"></TextBox>
|
|
<Label VerticalAlignment="Center">1:</Label>
|
|
<TextBox x:Name="tbSf2" TextAlignment="Center" Width="30" Height="30" Margin="10 0"></TextBox>
|
|
<Label VerticalAlignment="Center">2:</Label>
|
|
<TextBox x:Name="tbSf3" TextAlignment="Center" Width="30" Height="30" Margin="10 0"></TextBox>
|
|
<Label VerticalAlignment="Center">3:</Label>
|
|
<TextBox x:Name="tbSf4" TextAlignment="Center" Width="30" Height="30" Margin="10 0"></TextBox>
|
|
<Button x:Name="btnApplyConfiguration" Content="Apply" HorizontalAlignment="Right" Height="30" Width="100" Margin="10" Click="btnApplyConfiguration_Click"/>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Initialization">
|
|
<DockPanel>
|
|
<Button x:Name="btnInitSplitflaps" Content="Move to Zero" HorizontalAlignment="Left" Height="30" Width="100" Margin="10" Click="btnInitSplitflaps_Click"/>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
|
|
<!-- LINE SENSOR -->
|
|
<GroupBox Grid.Row="1" Grid.Column="0" Header="Line Sensor calibration">
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Left" Orientation="Vertical">
|
|
<Button x:Name="btnStartCalibration" Content="Start Calibration" Margin="5" Width="200" Height="30" Click="btnStartCalibration_Click" />
|
|
<Button x:Name="btnEndCalibration" Content="End Calibration" Margin="5" Width="200" Height="30" Click="btnEndCalibration_Click" />
|
|
</StackPanel>
|
|
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" Content="Calibration state:" />
|
|
<TextBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" x:Name="tbCalibrationState" IsReadOnly="True" Width="200" Height="30"/>
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Calibration data:" />
|
|
<TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" x:Name="tbCalibrationData" IsReadOnly="True" Width="500" Height="30" />
|
|
|
|
<Button Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Right" x:Name="btnGetCalibrationData" Content="Refresh" Width="100" Height="30" Click="btnGetCalibrationData_Click"/>
|
|
</Grid>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
|
|
<!-- ROBOT CONFIGURATOR -->
|
|
<GroupBox Grid.Row="2" Grid.Column="0" Header="Robot configurator">
|
|
<DockPanel Margin="5">
|
|
<StackPanel Orientation="Vertical">
|
|
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" VerticalAlignment="Top">
|
|
<Label DockPanel.Dock="Left" Content="Hostname:" Margin="5 0" Height="30" Width="100"/>
|
|
<TextBox DockPanel.Dock="Left" x:Name="tbRobotConfiguratorHostname" Width="300" Height="30" Margin="5" Text="ADISRobotExx.simple.eee.intern" TextChanged="tbRobotConfiguratorHostname_TextChanged"/>
|
|
<Button DockPanel.Dock="Left" x:Name="btnClearRobotConfHostname" Content="Clear" Margin="5" Width="50" Height="30" Click="btnClearRobotConfHostname_Click" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label DockPanel.Dock="Left" Content="Options:" Margin="5 0" Height="30" Width="100"/>
|
|
<Button x:Name="btnSetBrokerIp" Content="Update Broker IP" Margin="5" Width="120" Height="30" HorizontalAlignment="Left" Click="btnSetBrokerIp_Click"/>
|
|
<Button x:Name="btnReboot" Content="Reboot ESP32" Margin="5" Width="120" Height="30" HorizontalAlignment="Left" Click="btnReboot_Click" />
|
|
<Button x:Name="btnSetModeStationary" Content="Set Mode Stationary" Margin="5" Width="150" Height="30" HorizontalAlignment="Left" Click="btnSetModeStationary_Click" />
|
|
<Button x:Name="btnSetModeMobile" Content="Set Mode Mobile" Margin="5" Width="120" Height="30" HorizontalAlignment="Left" Click="btnSetModeMobile_Click" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
</Grid>
|
|
</UserControl>
|
|
|