refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,54 @@
using System.Diagnostics;
using Aitex.Core.RT.IOCore;
using Aitex.Core.Util;
namespace Aitex.Core.RT.Device.Devices
{
internal class IoTCHeaterLoop
{
private readonly DeviceTimer _rampTimer;
public IoTCHeaterLoop(int id, AOAccessor aoTargetSP, AOAccessor aoTempFromSensorToTC)
{
Debug.Assert(aoTargetSP != null);
Debug.Assert(aoTempFromSensorToTC != null);
Name = $"L{id}";
_rampTimer = new DeviceTimer();
AOTargetSP = aoTargetSP;
AOTempFromSensorTC = aoTempFromSensorToTC;
}
public string Name { get; }
/// <summary>
/// TC Auto模式时控温目标温度。
/// </summary>
public AOAccessor AOTargetSP { get; private set; }
/// <summary>
/// 从温度传感器读到的实时温度通过此AO写入2704.
/// </summary>
public AOAccessor AOTempFromSensorTC { get; private set; }
public DeviceTimer RampTimer => _rampTimer;
public float RampInitTemp { get; set; }
public float RampTargetTemp { get; set; }
public int RampDurationMs { get; private set; }
public void StartRamp(int duration)
{
RampDurationMs = duration;
_rampTimer.Start(duration);
}
public void StopRamp()
{
RampDurationMs = 0;
_rampTimer.Stop();
}
}
}