From 8ba30e83ef28b860dbb6b6322fd5ef3382992974 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Sun, 7 Apr 2024 07:19:02 +0800 Subject: [PATCH] =?UTF-8?q?1078-=E4=BF=AE=E5=A4=8D=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/jt1078/cmd/JT1078Template.java | 2 +- .../iot/vmp/jt1078/proc/response/J9302.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/cmd/JT1078Template.java b/src/main/java/com/genersoft/iot/vmp/jt1078/cmd/JT1078Template.java index 918d42a94..20738f02d 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/cmd/JT1078Template.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/cmd/JT1078Template.java @@ -175,7 +175,7 @@ public class JT1078Template { * @param devId 设备号 * @param j9302 云台焦距控制参数 */ - public String ptzZoom(String devId, J9302 j9302, Integer timeOut) { + public String ptzFocal(String devId, J9302 j9302, Integer timeOut) { Cmd cmd = new Cmd.Builder() .setDevId(devId) .setPackageNo(randomInt()) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9302.java b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9302.java index d2630ebb3..bb1ec2e31 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9302.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9302.java @@ -14,13 +14,13 @@ public class J9302 extends Rs { private int channel; // 方向: 0:焦距调大; 1:焦距调小 - private int zoomDirection; + private int focalDirection; @Override public ByteBuf encode() { ByteBuf buffer = Unpooled.buffer(); buffer.writeByte(channel); - buffer.writeByte(zoomDirection); + buffer.writeByte(focalDirection); return buffer; } @@ -32,19 +32,19 @@ public class J9302 extends Rs { this.channel = channel; } - public int getZoomDirection() { - return zoomDirection; + public int getFocalDirection() { + return focalDirection; } - public void setZoomDirection(int zoomDirection) { - this.zoomDirection = zoomDirection; + public void setFocalDirection(int focalDirection) { + this.focalDirection = focalDirection; } @Override public String toString() { return "J9302{" + "channel=" + channel + - ", zoomDirection=" + zoomDirection + + ", zoomDirection=" + focalDirection + '}'; } }