mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 22:17:49 +08:00
1078-修复错别字
This commit is contained in:
parent
98d9eb5314
commit
8ba30e83ef
@ -175,7 +175,7 @@ public class JT1078Template {
|
|||||||
* @param devId 设备号
|
* @param devId 设备号
|
||||||
* @param j9302 云台焦距控制参数
|
* @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()
|
Cmd cmd = new Cmd.Builder()
|
||||||
.setDevId(devId)
|
.setDevId(devId)
|
||||||
.setPackageNo(randomInt())
|
.setPackageNo(randomInt())
|
||||||
|
|||||||
@ -14,13 +14,13 @@ public class J9302 extends Rs {
|
|||||||
private int channel;
|
private int channel;
|
||||||
|
|
||||||
// 方向: 0:焦距调大; 1:焦距调小
|
// 方向: 0:焦距调大; 1:焦距调小
|
||||||
private int zoomDirection;
|
private int focalDirection;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ByteBuf encode() {
|
public ByteBuf encode() {
|
||||||
ByteBuf buffer = Unpooled.buffer();
|
ByteBuf buffer = Unpooled.buffer();
|
||||||
buffer.writeByte(channel);
|
buffer.writeByte(channel);
|
||||||
buffer.writeByte(zoomDirection);
|
buffer.writeByte(focalDirection);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,19 +32,19 @@ public class J9302 extends Rs {
|
|||||||
this.channel = channel;
|
this.channel = channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getZoomDirection() {
|
public int getFocalDirection() {
|
||||||
return zoomDirection;
|
return focalDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setZoomDirection(int zoomDirection) {
|
public void setFocalDirection(int focalDirection) {
|
||||||
this.zoomDirection = zoomDirection;
|
this.focalDirection = focalDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "J9302{" +
|
return "J9302{" +
|
||||||
"channel=" + channel +
|
"channel=" + channel +
|
||||||
", zoomDirection=" + zoomDirection +
|
", zoomDirection=" + focalDirection +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user