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 9257bb6 commit ed9cf79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions donkeycar/parts/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ 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 = "
# np.array2string(matrix, precision=2, separator=',',
# sign='+', floatmode='fixed',
# suppress_small=True).replace('\n', '') +\
out_str = f"\rm = " + \
np.array2string(matrix, precision=2, separator=',',
sign='+', floatmode='fixed',
suppress_small=True).replace('\n', '')
out_str += \
'a = ' + \
np.array2string(accel, precision=2, separator=',', sign='+',
Expand Down

0 comments on commit ed9cf79

Please sign in to comment.