update imu

This commit is contained in:
MobKBK
2026-05-26 04:19:57 +08:00
parent 62cae27c54
commit e75155a3c8
6 changed files with 70 additions and 44 deletions

View File

@@ -166,7 +166,7 @@ def run_live(port, baud, save_csv=None):
# 30Hz 刷新显示
now = time.time()
if now - last_draw >= 0.033:
viewer.update(tracker.history_array)
viewer.update(tracker.history_array, tracker.R)
plt.pause(0.001)
last_draw = now
@@ -258,7 +258,7 @@ def run_replay(csv_path):
now = time.time()
if now - last_draw >= 0.033:
viewer.update(tracker.history_array)
viewer.update(tracker.history_array, tracker.R)
plt.pause(0.001)
last_draw = now
else: