泰国沙盘停站延时改动
This commit is contained in:
parent
74b9ab80da
commit
7d678f3d61
|
@ -1003,13 +1003,40 @@ public class DeviceServiceImpl implements DeviceService {
|
|||
headDelayTime = 5.5f;
|
||||
break;
|
||||
case "T175": //4站-IIG
|
||||
headDelayTime = 6.5f;
|
||||
break;
|
||||
case "T174": //4站-4G
|
||||
headDelayTime = 6.2f;
|
||||
break;
|
||||
case "T176": //4站-6G
|
||||
headDelayTime = 6f;
|
||||
break;
|
||||
case "T179": //4站-5G
|
||||
headDelayTime = 5.9f;
|
||||
break;
|
||||
case "T121": //3站-IIG
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T120": //3站-4G
|
||||
headDelayTime = 5.5f;
|
||||
break;
|
||||
case "T121": //4站-IIG
|
||||
headDelayTime = 5.2f;
|
||||
case "T77": //2站-IIG
|
||||
headDelayTime = 6.1f;
|
||||
break;
|
||||
case "T77": //4站-IIG
|
||||
headDelayTime = 6f;
|
||||
case "T76": //2站-4G
|
||||
headDelayTime = 5.7f;
|
||||
break;
|
||||
case "T22": //1站-1G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T23": //1站-IIG
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T24": //1站-4G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T25": //1站-6G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T145": //QX04
|
||||
tailDelayTime = 0f;
|
||||
|
|
|
@ -19,7 +19,6 @@ import club.joylink.rtss.simulation.cbtc.device.real.udp.thailand.config.Thailan
|
|||
import club.joylink.rtss.simulation.cbtc.device.real.udp.thailand.config.ThailandTrainConfig;
|
||||
import club.joylink.rtss.simulation.cbtc.onboard.ATP.ATPService;
|
||||
import club.joylink.rtss.vo.client.project.thailand.ThailandSectionConfigVO;
|
||||
import club.joylink.rtss.vo.map.graph.MapSectionNewVO;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Objects;
|
||||
|
@ -108,7 +107,7 @@ public class ThailandTrainServiceImpl implements UDPRealDeviceService {
|
|||
}
|
||||
}
|
||||
//根据区段的配置信息,设置车头位置更新至停车点的时间
|
||||
// fill(headSection, sectionConfig.getConfigVO()); 仅用于调试
|
||||
// fill(headSection, sectionConfig.getConfigVO());
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
if (config.getTimeOfArriveStopPoint() == null) {
|
||||
int rate = 1000000000; //秒到纳秒的换算比例
|
||||
|
@ -226,7 +225,7 @@ public class ThailandTrainServiceImpl implements UDPRealDeviceService {
|
|||
}
|
||||
|
||||
/**
|
||||
* 此方法用于调试,调试完成后方法内的数据请保存到项目设备配置{@link club.joylink.rtss.services.project.DeviceServiceImpl#thailandFillTime(ThailandSectionConfigVO, MapSectionNewVO)}
|
||||
* 此方法用于调试,调试完成后方法内的数据请保存到项目设备配置
|
||||
*/
|
||||
public void fill(Section section, ThailandSectionConfigVO configVO) {
|
||||
Float headDelayTime = null;
|
||||
|
@ -245,13 +244,40 @@ public class ThailandTrainServiceImpl implements UDPRealDeviceService {
|
|||
headDelayTime = 5.5f;
|
||||
break;
|
||||
case "T175": //4站-IIG
|
||||
headDelayTime = 6.5f;
|
||||
break;
|
||||
case "T174": //4站-4G
|
||||
headDelayTime = 6.2f;
|
||||
break;
|
||||
case "T176": //4站-6G
|
||||
headDelayTime = 6f;
|
||||
break;
|
||||
case "T179": //4站-5G
|
||||
headDelayTime = 5.9f;
|
||||
break;
|
||||
case "T121": //3站-IIG
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T120": //3站-4G
|
||||
headDelayTime = 5.5f;
|
||||
break;
|
||||
case "T121": //4站-IIG
|
||||
headDelayTime = 5.2f;
|
||||
case "T77": //2站-IIG
|
||||
headDelayTime = 6.1f;
|
||||
break;
|
||||
case "T77": //4站-IIG
|
||||
headDelayTime = 6f;
|
||||
case "T76": //2站-4G
|
||||
headDelayTime = 5.7f;
|
||||
break;
|
||||
case "T22": //1站-1G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T23": //1站-IIG
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T24": //1站-4G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T25": //1站-6G
|
||||
headDelayTime = 5.1f;
|
||||
break;
|
||||
case "T145": //QX04
|
||||
tailDelayTime = 0f;
|
||||
|
|
Loading…
Reference in New Issue