提交位移台和对焦系统代码

This commit is contained in:
ldh
2026-11-18 08:55:40 +08:00
parent 29e90bbc7b
commit dd6edce089
21 changed files with 2083 additions and 0 deletions
@@ -0,0 +1,25 @@
namespace HardwareControl.Core.FocusSystem
{
/// <summary>
/// 定焦系统配置,对应 appsettings.json 的 "FocusSystem" 节。
/// 串口优先从系统参数 focus_com 读取,未配置时才使用 <see cref="ComPort"/>。
/// </summary>
public sealed class FocusSystemOptions
{
public const string SectionName = "FocusSystem";
/// <summary>
/// 回退串口名(例如 "COM6"),仅当系统参数 focus_com 为空时使用。
/// </summary>
public string? ComPort { get; set; }
/// <summary>校准位移未显式传速度时使用的默认速度。</summary>
public ushort DefaultCalibrationSpeed { get; set; } = 50;
/// <summary>读取系统信息/运行结果的默认超时,单位毫秒。</summary>
public int ReadTimeoutMs { get; set; } = 1000;
/// <summary>读取失败时的重试间隔,单位毫秒。</summary>
public int ReadRetryIntervalMs { get; set; } = 100;
}
}