From 58541f065486925e6fbaecd269acbcaeebc11cb1 Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Tue, 3 Sep 2019 18:40:24 +0800 Subject: [PATCH] =?UTF-8?q?mmi=E6=98=BE=E7=A4=BA=E8=A1=A5=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jl3ddrive/moveupdate/DrivingConnect.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js index c26392350..503e1420d 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js @@ -418,17 +418,17 @@ export function Jl3dDriving(updatemmi) { if (sectionlist.sections.datalist[data.body[i].sectionCode].code) { if (driverswitch == '02' && code == drivingcode) { - // updatemmi.updatenowspeed(data.body[i].speed); - // if (data.body[i].atpSpeed) { - // updatemmi.updateatpspeed(data.body[i].atpSpeed); - // } else { - // updatemmi.updateatpspeed(-1); - // } - // if (data.body[i].targetSpeed) { - // updatemmi.updateatospeed(data.body[i].targetSpeed); - // } else { - // updatemmi.updateatospeed(-1); - // } + updatemmi.updatenowspeed(data.body[i].speed); + if (data.body[i].atpSpeed) { + updatemmi.updateatpspeed(data.body[i].atpSpeed); + } else { + updatemmi.updateatpspeed(-1); + } + if (data.body[i].targetSpeed) { + updatemmi.updateatospeed(data.body[i].targetSpeed); + } else { + updatemmi.updateatospeed(-1); + } if (data.body[i].maLen) { updatemmi.updatenowlen(data.body[i].maLen); } else {