磁导航1.0内部交管和信号交互
This commit is contained in:
@@ -18,10 +18,10 @@ namespace StandardScene.Signal.Logic
|
||||
public static class PointControlHandler
|
||||
{
|
||||
/// <summary>停稳:先判机构是否允许离开,再下发销钉,全部到位后启动。</summary>
|
||||
public static void OnStopped(Car car, SignalStopSpec spec, Func<string, PlcStationRuntime> find)
|
||||
public static void OnStopped(Car car, SignalStopSpec spec, Func<string, string, PlcStationRuntime> find)
|
||||
{
|
||||
var action = spec.Part(0).Trim();
|
||||
var jgName = spec.Part(1).Trim();
|
||||
var action = spec.Action;
|
||||
var jgName = spec.JgName;
|
||||
if (string.IsNullOrEmpty(action))
|
||||
{
|
||||
Diagnosis.Log($"AGV{car.id}停在地标{SignalCarAdapter.PositionId(car)},读取配置特殊点名称为空", "SetPin", true);
|
||||
@@ -31,7 +31,7 @@ namespace StandardScene.Signal.Logic
|
||||
var waitLeave = false;
|
||||
if (!string.IsNullOrEmpty(jgName))
|
||||
{
|
||||
var rt = find(jgName);
|
||||
var rt = find(jgName, spec.DockId);
|
||||
if (rt != null)
|
||||
{
|
||||
lock (rt.Sync)
|
||||
|
||||
Reference in New Issue
Block a user