Commit 31c2f52e48de139c5f6b5dd751f6e9576c4d17cc

Authored by shanyuanzz
Committed by GitHub
1 parent e42d0157

Update SIPCommander.java

Add by 白米粥
1.修正云台控制的zoom的speedbug。
解决当zoom时speed为1-FH时速度变化为1-FH,而10H~FFH以上时是以首位速度进行变化,变化速率过于不一致。
修改后1-FH的速度均以1的速率进行缩放变倍。
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java
... ... @@ -146,6 +146,10 @@ public class SIPCommander implements ISIPCommander {
146 146 builder.append(strTmp, 0, 2);
147 147 strTmp = String.format("%02X", parameter2);
148 148 builder.append(strTmp, 0, 2);
  149 + if ((combineCode2 > 0) && (combineCode2 <16))
  150 + {
  151 + combineCode2 = 16;
  152 + }
149 153 strTmp = String.format("%X", combineCode2);
150 154 builder.append(strTmp, 0, 1).append("0");
151 155 //计算校验码
... ...