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.

41 lines
1.7 KiB

<Page x:Class="Simulator.Views.FixedSetpointPIDView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Simulator.Views"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewModels="clr-namespace:Simulator.ViewModels"
Title="FixedSetpointPIDView"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Page.DataContext>
<viewModels:FixedSetpointPIDViewModel />
</Page.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<lvc:CartesianChart LegendLocation="Bottom" Series="{Binding Series}" />
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Label Content="Kp" />
<TextBox Width="50"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Text="{Binding Kp}" />
<Label Content="Ki" />
<TextBox Width="50"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Text="{Binding Ki}" />
<Label Content="Kd" />
<TextBox Width="50"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Text="{Binding Kd}" />
<Button Command="{Binding SimulateCommand}" Content="Simulate" Margin="20 0 0 0" />
</StackPanel>
</Grid>
</Page>