新增 scene.signal 信号交互插件,落地 PLC 握手与扫车放行。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using SimpleLite.RCS.CarTypes;
|
||||
using StandardScene.Signal.Model;
|
||||
using StandardScene.Signal.Plc;
|
||||
|
||||
namespace StandardScene.Signal.Logic
|
||||
{
|
||||
/// <summary>对齐反编译 StarSignManage:配置点停稳则停充并放行。</summary>
|
||||
public static class ReleasePointHandler
|
||||
{
|
||||
public static void OnStopped(Car car, int sit, IReadOnlyDictionary<int, ReleasePointModel> points)
|
||||
{
|
||||
if (points == null || !points.TryGetValue(sit, out var p) || p == null || !p.IsUse)
|
||||
return;
|
||||
SignalCarAdapter.StopCharge(car);
|
||||
SignalCarAdapter.Start(car);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user