namespace HardwareControl.Core.FocusSystem { /// /// 定焦系统配置,对应 appsettings.json 的 "FocusSystem" 节。 /// 串口优先从系统参数 focus_com 读取,未配置时才使用 。 /// public sealed class FocusSystemOptions { public const string SectionName = "FocusSystem"; /// /// 回退串口名(例如 "COM6"),仅当系统参数 focus_com 为空时使用。 /// public string? ComPort { get; set; } /// 校准位移未显式传速度时使用的默认速度。 public ushort DefaultCalibrationSpeed { get; set; } = 50; /// 读取系统信息/运行结果的默认超时,单位毫秒。 public int ReadTimeoutMs { get; set; } = 1000; /// 读取失败时的重试间隔,单位毫秒。 public int ReadRetryIntervalMs { get; set; } = 100; } }