Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
namespace Sick.ColaB;
/// <summary>
/// Result of parsing LMDscandata from SICK scanner
/// Contains raw scan data that can be converted to application-specific formats
/// </summary>
public sealed class ScanDataResult
{
/// <summary>
/// Distance measurements in meters
/// </summary>
public double[] Ranges { get; init; } = [];
/// <summary>
/// Intensity/RSSI values (normalized 0-1), optional
/// </summary>
public double[]? Intensities { get; init; }
/// <summary>
/// Starting angle in degrees
/// </summary>
public double StartAngleDeg { get; init; }
/// <summary>
/// Angular step width in degrees
/// </summary>
public double AngularStepDeg { get; init; }
/// <summary>
/// Scale factor applied to distance values
/// </summary>
public double ScaleFactor { get; init; } = 1.0;
/// <summary>
/// Scale offset applied to distance values
/// </summary>
public double ScaleOffset { get; init; }
/// <summary>
/// Timestamp when data was parsed
/// </summary>
public DateTime Timestamp { get; init; } = DateTime.UtcNow;
/// <summary>
/// Checks if the scan data is valid (has range measurements)
/// </summary>
public bool IsValid => Ranges.Length > 0;
}