Skip to content

Commit ce59642

Browse files
authored
Fix steering arc artifacts (#36707)
* fix arc artifacts * works but how * also this * Revert "also this" This reverts commit e8d5ed9. * clean up * nl * clean up * more * print * print
1 parent 3959200 commit ce59642

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

selfdrive/ui/mici/onroad/torque_bar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def get_cap(left: bool, a_deg: float):
130130

131131
pts = np.vstack((outer, cap_end, inner, cap_start, outer[:1])).astype(np.float32)
132132

133+
# Rotate to start from middle of cap for proper triangulation
134+
pts = np.roll(pts, cap_segs, axis=0)
135+
133136
if DEBUG:
134137
n = len(pts)
135138
idx = int(time.monotonic() * 12) % max(1, n) # speed: 12 pts/sec

0 commit comments

Comments
 (0)