Skip to content

Commit

Permalink
Print orientation matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
DocGarbanzo committed Sep 28, 2024
1 parent 8f455fd commit 28cc9e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion donkeycar/parts/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,11 @@ def shutdown(self):
try:
euler, matrix, accel = p.run()
#out_str = f"\reuler: " + f",".join(f"{x:+5.3f}" for x in matrix)
out_str = f"\rm = " + \
out_str = f"\rm = "
# np.array2string(matrix, precision=3, separator=',',
# sign='+', floatmode='fixed',
# suppress_small=True).replace('\n', '') +\
out_str += \
'a = ' + \
np.array2string(accel, precision=3, separator=',', sign='+',
floatmode='fixed',
Expand Down

0 comments on commit 28cc9e0

Please sign in to comment.