Update SIPCommander.java

Add by 白米粥
1.修正云台控制的zoom的speedbug。
解决当zoom时speed为1-FH时速度变化为1-FH,而10H~FFH以上时是以首位速度进行变化,变化速率过于不一致。
修改后1-FH的速度均以1的速率进行缩放变倍。
pull/869/head
shanyuanzz 2023-05-28 13:39:16 +08:00 committed by GitHub
parent e42d015729
commit 31c2f52e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ public class SIPCommander implements ISIPCommander {
builder.append(strTmp, 0, 2);
strTmp = String.format("%02X", parameter2);
builder.append(strTmp, 0, 2);
if ((combineCode2 > 0) && (combineCode2 <16))
{
combineCode2 = 16;
}
strTmp = String.format("%X", combineCode2);
builder.append(strTmp, 0, 1).append("0");
//计算校验码