This commit is contained in:
2026-02-02 10:00:26 +07:00
commit b9b2c6ef79
617 changed files with 133854 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace SickBlazorApp.Models;
public sealed class CanFrame
{
public uint CobId { get; init; }
public int Length { get; init; }
public string DataHex { get; init; } = string.Empty;
public DateTime Timestamp { get; init; }
// Optional
public double? PositionMm { get; init; }
public string? Description { get; init; }
}

View File

@@ -0,0 +1,11 @@
namespace SickBlazorApp.Models;
public enum CanNodeState
{
Unknown = 0,
Bootup,
PreOperational,
Operational,
Stopped,
Timeout
}

View File

@@ -0,0 +1,8 @@
namespace SickBlazorApp.Models;
public sealed class EncoderPosition
{
public uint Raw { get; set; }
public double PositionMm { get; set; }
public DateTime Time { get; set; }
}

View File

@@ -0,0 +1,15 @@
namespace SickBlazorApp.Models
{
public sealed class PositionPdo
{
public uint CobId { get; init; }
public int Length { get; init; } // DLC
public string DataHex { get; init; } = string.Empty; // "0B C4 CE 03 08 00 00 00"
public uint RawValue { get; init; }
public double PositionMm { get; init; }
public DateTime Timestamp { get; init; }
}
}