2.0协议完善加简单交管配置
This commit is contained in:
@@ -152,6 +152,17 @@ namespace StandardScene.Fass2Simulator
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>协议速度(0.1 m/min) → mm/s。</summary>
|
||||
public static double ProtocolSpeedToMmPerSec(ushort protocolSpeed)
|
||||
{
|
||||
if (protocolSpeed == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return protocolSpeed * 0.1 * 1000.0 / 60.0;
|
||||
}
|
||||
|
||||
public static string ToHex(byte[] bytes)
|
||||
{
|
||||
return bytes == null ? string.Empty : string.Join(" ", bytes.Select(b => b.ToString("X2")));
|
||||
|
||||
Reference in New Issue
Block a user