Skip to content

Commit 6bf1581

Browse files
committed
Print orientation matrix
1 parent 7272b45 commit 6bf1581

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

donkeycar/parts/imu.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,12 @@ def shutdown(self):
207207
try:
208208
euler, matrix, accel = p.run()
209209
#out_str = f"\reuler: " + f",".join(f"{x:+5.3f}" for x in matrix)
210-
out_str = f"\r\rm = " + \
210+
out_str = f"\rm = " + \
211211
np.array2string(matrix, precision=3, separator=',',
212212
sign='+', floatmode='fixed',
213-
suppress_small=True).replace('\n', '') + '\n' +\
214-
np.array2string(accel, precision=3, separator=',',sign='+',
213+
suppress_small=True).replace('\n', '') +\
214+
'a = ' + \
215+
np.array2string(accel, precision=3, separator=',', sign='+',
215216
floatmode='fixed',
216217
suppress_small=True).replace('\n', '')
217218
stdout.write(out_str)

0 commit comments

Comments
 (0)