save
This commit is contained in:
13
SickBlazorApp/Models/CanFrame.cs
Normal file
13
SickBlazorApp/Models/CanFrame.cs
Normal 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; }
|
||||
}
|
||||
11
SickBlazorApp/Models/CanNodeStart.cs
Normal file
11
SickBlazorApp/Models/CanNodeStart.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace SickBlazorApp.Models;
|
||||
|
||||
public enum CanNodeState
|
||||
{
|
||||
Unknown = 0,
|
||||
Bootup,
|
||||
PreOperational,
|
||||
Operational,
|
||||
Stopped,
|
||||
Timeout
|
||||
}
|
||||
8
SickBlazorApp/Models/EncoderPosition.cs
Normal file
8
SickBlazorApp/Models/EncoderPosition.cs
Normal 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; }
|
||||
}
|
||||
15
SickBlazorApp/Models/PositionPdo.cs
Normal file
15
SickBlazorApp/Models/PositionPdo.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user