修改三维驾驶面板

This commit is contained in:
sunzhenyu 2021-09-07 13:41:50 +08:00
parent a8fb38add4
commit 453435ae94

View File

@ -356,16 +356,16 @@
};
if(angle<250 && angle>122){
if(angle<160 && angle>122){
command.doorSelection = "R";
command.doorSelection = "L";
}else if(angle<210 && angle>=160){
command.doorSelection = "Z";
}else if(angle<250 && angle>=210){
command.doorSelection = "L";
command.doorSelection = "R";
}
// console.log(angle);
// console.log(command.doorSelection);
// console.log(this.oldDoorSelection);
if(command.doordirecttou != this.oldDoorSelection){
console.log(angle);
console.log(command.doorSelection);
console.log(this.oldDoorSelection);
if(command.doorSelection != this.oldDoorSelection){
// console.log(command.doorSelection);
this.oldDoorSelection = command.doorSelection;
trainSimulationDoorSelection(this.group,command).then(netdata => {
@ -605,13 +605,13 @@
if(data.doorSelection){
this.oldDoorSelection = data.doorSelection;
if(data.doorSelection == "R"){
this.doordirecttou = "rotate(305deg)";
this.doordirecttou = "rotate(50deg)";
}
if(data.doorSelection == "Z"){
this.doordirecttou = "rotate(359deg)";
}
if(data.doorSelection == "L"){
this.doordirecttou = "rotate(412deg)";
this.doordirecttou = "rotate(305deg)";
}
}