ui: fix disappearing path with wide cam (#26354)

* split lat long icons

* no overriding border status, consider steering pressed for lat icon, spacing for readability

* add engageable back

add engageable back

add engageable back

* all the debugging code 🙃

* revert that stuff

* only the fix

* comment

comment

* fix dat

* explicit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 384f940237
taco
Shane Smiskol 3 years ago committed by GitHub
parent a76506d9ce
commit a81683f4ec
  1. 2
      selfdrive/ui/ui.cc

@ -63,6 +63,8 @@ void update_line_data(const UIState *s, const cereal::ModelDataV2::XYZTData::Rea
right_points.reserve(max_idx + 1); right_points.reserve(max_idx + 1);
for (int i = 0; i <= max_idx; i++) { for (int i = 0; i <= max_idx; i++) {
// highly negative x positions cause flickering, clip to zy plane of camera
if (line_x[i] < 0) continue;
QPointF left, right; QPointF left, right;
bool l = calib_frame_to_full_frame(s, line_x[i], line_y[i] - y_off, line_z[i] + z_off, &left); bool l = calib_frame_to_full_frame(s, line_x[i], line_y[i] - y_off, line_z[i] + z_off, &left);
bool r = calib_frame_to_full_frame(s, line_x[i], line_y[i] + y_off, line_z[i] + z_off, &right); bool r = calib_frame_to_full_frame(s, line_x[i], line_y[i] + y_off, line_z[i] + z_off, &right);

Loading…
Cancel
Save