feat(devkit): 终端打印pzt_angle/magnitude/state
This commit is contained in:
@@ -278,9 +278,8 @@ class SensorPushServicer(sensor_stream_pb2_grpc.SensorPushServicer):
|
||||
try:
|
||||
angle, magnitude, state, cop_x, cop_y, base_x, base_y = get_pzt_angle(frame.matrix)
|
||||
self.last_angle = angle
|
||||
# 打印接收到的数据
|
||||
print(f"[Recv #{frame.seq}] seq={frame.seq} ts={frame.timestamp_ms} dts={frame.dts_ms} "
|
||||
f"data={list(frame.matrix)}")
|
||||
# 打印接收到的数据和计算结果
|
||||
print(f"[PZT] seq={frame.seq} pzt_angle={angle:.2f} magnitude={magnitude:.4f} state={state}")
|
||||
except Exception as e:
|
||||
ok = False
|
||||
message = str(e)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user