2021-09-14 17:17:33 +05:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-04-08 13:10:06 +05:00
|
|
|
|
namespace AsbCloudApp.Data.SAUB
|
2021-09-14 17:17:33 +05:00
|
|
|
|
{
|
2022-10-13 14:22:20 +05:00
|
|
|
|
#nullable enable
|
2022-10-31 17:57:52 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// телеметрия спин мастер
|
|
|
|
|
/// </summary>
|
2021-09-17 16:24:01 +05:00
|
|
|
|
public class TelemetryDataSpinDto : ITelemetryData
|
2021-09-14 17:17:33 +05:00
|
|
|
|
{
|
2022-10-13 14:22:20 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор телеметрии
|
|
|
|
|
/// </summary>
|
2021-09-14 17:17:33 +05:00
|
|
|
|
public int IdTelemetry { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата
|
|
|
|
|
/// </summary>
|
2022-04-08 13:10:06 +05:00
|
|
|
|
public DateTime DateTime { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime Date
|
2022-04-08 13:10:06 +05:00
|
|
|
|
{
|
|
|
|
|
get { return DateTime; }
|
|
|
|
|
set { DateTime = value; }
|
|
|
|
|
}
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ограничение числа оборотов вправо
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? RevolsRightLimit { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ограничение числа оборотов влево
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? RevolsLeftLimit { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Заданная скорость вращения вправо
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? SpeedRightSp { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Заданная скорость вращения влево
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? SpeedLeftSp { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Суммарное количество оборотов вправо
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? RevolsRightTotal { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Суммарное количество оборотов влево
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? RevolsLeftTotal { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Нулевая позиция осцилляции
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? PositionZero { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Крайний правый угол осцилляции
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public float? PositionRight { get; set; }
|
2022-10-13 14:22:20 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Выбранный режим управления
|
|
|
|
|
/// </summary>
|
|
|
|
|
public short? Mode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Переменная этапа
|
|
|
|
|
/// </summary>
|
2021-10-31 16:35:09 +05:00
|
|
|
|
public short? State { get; set; }
|
2022-10-31 17:57:52 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Осцилляция включена
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsOscillating => State != 0 & State != 6 & State != 7;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Демпфирование включено
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsDampening => State == 7 && (Mode & 2) > 0;
|
2021-09-14 17:17:33 +05:00
|
|
|
|
}
|
2022-10-13 14:22:20 +05:00
|
|
|
|
#nullable disable
|
2021-09-14 17:17:33 +05:00
|
|
|
|
}
|