呼梯时,到指定目标楼层,根据任务的start_floor来

This commit is contained in:
alex
2023-10-10 16:03:04 +08:00
parent ab9608aec2
commit 0896186295
4 changed files with 10 additions and 10 deletions

View File

@@ -33,10 +33,10 @@ namespace Tnb.WarehouseMgr
private static Dictionary<string, Func<BackgroundService, bool>> _fetchStartedStausValue = new();
private bool isFrontDoorBit = false; //是否到前门位
public ElevatorControlService(BackgroundService agvHeartbeatMonitorService)
public ElevatorControlService()
{
_elevatorCtlCfg = App.Configuration.Build<ElevatorControlConfiguration>();
_agvHeartbeatMonitor = agvHeartbeatMonitorService;
//_agvHeartbeatMonitor = agvHeartbeatMonitorService;
}
/// <summary>
@@ -107,7 +107,7 @@ namespace Tnb.WarehouseMgr
public async Task<dynamic> ThreeFloorElevatorFlow()
{
//test by close door
_agvHeartbeatMonitor.StartAsync(CancellationToken.None);
//_agvHeartbeatMonitor.StartAsync(CancellationToken.None);
//await SendOpenCloseCmd(4);
//await SetAgvControlStatus(1);
//监听电梯门是否为关闭的状态