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.

43 lines
1.8 KiB

<Page x:Class="Simulator.Views.MovingSetpointPIDView"
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="MovingSetpointPIDView"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Page.DataContext>
<viewModels:MovingSetpointPIDViewModel />
</Page.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<lvc:CartesianChart LegendLocation="Bottom" Series="{Binding Series, Mode=OneWay}" DisableAnimations="True"/>
<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 Margin="20,0,0,0"
Command="{Binding SimulateCommand}"
Content="Simulate" />
</StackPanel>
</Grid>
</Page>