列车初始化时将机器人驾驶参数也初始化

This commit is contained in:
joylink_zhangsai 2023-11-23 10:50:31 +08:00
parent 6b14090431
commit 6c6e254751
1 changed files with 8 additions and 0 deletions

View File

@ -706,6 +706,14 @@ public class VirtualRealityTrain extends VirtualRealityDevice {
this.gear = Handwheel.ATO;
this.confirmationMessages.clear();
this.cbtcMaMissDuration = 0;
boolean defaultStop = this.robotDriveParam.isDefaultStop();
this.robotDriveParam = new DriveParamVO();
if (defaultStop) {
this.robotDriveParam.setDefaultStop(true);
this.robotDriveParam.setStop(true);
this.robotDriveParam.setRun(false);
}
}
public void setTarget(Section target) {