39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
@using RobotNet.VDA5050.State
|
|
|
|
<MudPaper Class="pa-4" Elevation="2">
|
|
<MudText Typo="Typo.h6" Class="mb-3">Velocity</MudText>
|
|
@if (State?.Velocity != null)
|
|
{
|
|
<MudSimpleTable Elevation="0">
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Vx:</strong></td>
|
|
<td>@State.Velocity.Vx.ToString("F3") m/s</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Vy:</strong></td>
|
|
<td>@State.Velocity.Vy.ToString("F3") m/s</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Omega:</strong></td>
|
|
<td>@State.Velocity.Omega.ToString("F3") rad/s</td>
|
|
</tr>
|
|
</tbody>
|
|
</MudSimpleTable>
|
|
}
|
|
else
|
|
{
|
|
<MudText Typo="Typo.body2" Align="Align.Center">No velocity data available</MudText>
|
|
}
|
|
</MudPaper>
|
|
|
|
@code {
|
|
public StateMsg? State { get; set; }
|
|
|
|
public void Update(StateMsg? state)
|
|
{
|
|
State = state;
|
|
StateHasChanged();
|
|
}
|
|
}
|