feat: add AngleDisplay MVVM UserControl for advance monitoring

Refactors the old AngleDisplay code-behind into a clean MVVM implementation
with AngleDisplayViewModel (PSG/INJ/Manual encoder angles, zero references,
lock angle calculation with tolerance color coding) and a pure XAML view.
Wires LockAngleFaseReady and PsgModeFaseReady test phase events.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 15:16:15 +02:00
parent e343006f45
commit d34e81163a
5 changed files with 449 additions and 0 deletions

View File

@@ -112,6 +112,7 @@
<RowDefinition Height="Auto"/> <!-- Row 1: CAN buttons -->
<RowDefinition Height="Auto"/> <!-- Row 2: two-column info + controls -->
<RowDefinition Height="Auto"/> <!-- Row 3: flowmeter charts -->
<RowDefinition Height="Auto"/> <!-- Row 4: angle display -->
</Grid.RowDefinitions>
<!-- ── Row 0: Connection status indicators ─────────────── -->
@@ -430,6 +431,10 @@
<uc:FlowmeterChartView DataContext="{Binding FlowmeterChart.Over}" Margin="0,4,0,0"/>
</StackPanel>
<!-- ── Row 4: Advance monitoring (encoder angles) ─────── -->
<uc:AngleDisplayView Grid.Row="4" Margin="0,4"
DataContext="{Binding AngleDisplay}"/>
</Grid>
</ScrollViewer>
</Expander>