Don't add 2.7 m to lead distance in ui. The reference frame shifted a while ago.

old-commit-hash: 049f2d0e1b
commatwo_master
Willem Melching 5 years ago
parent 2b79e60cd7
commit 6c1c2f3788
  1. 2
      selfdrive/ui/paint.cc

@ -120,7 +120,7 @@ static void draw_lead(UIState *s, float d_rel, float v_rel, float y_rel){
}
fillAlpha = (int)(fmin(fillAlpha, 255));
}
draw_chevron(s, d_rel+2.7, y_rel, 25,
draw_chevron(s, d_rel, y_rel, 25,
nvgRGBA(201, 34, 49, fillAlpha), nvgRGBA(218, 202, 37, 255));
}

Loading…
Cancel
Save