Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
if tag.x_translation() >= 0: data = struct.pack("<bbiiibb", 0xAA, #帧头 0xAE, #帧头 tag.id(), #数据id #x的坐标 int(10000*tag.x_translation()),#数据1 #z的坐标 -int(10000*tag.z_translation()),#数据2 0xBF, #标志位表示大于零 0xAC) #帧尾
我没看懂是什么意思。
就是说我可以在这里面塞一个z轴的偏转吗
这个格式是你自己设计的,当然可以加。