diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index f737d91117abb0c..c152dc30caf1d57 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -50,7 +50,7 @@ static void update_leads(UIState *s, const cereal::ModelDataV2::Reader &model) { float z = model_position.getZ()[get_path_length_idx(model_position, leads[i].getX()[0])]; calib_frame_to_full_frame(s, leads[i].getX()[0], leads[i].getY()[0], z + 1.22, &s->scene.lead_vertices[i]); } else if (i == 0 && v_ego < 4. && lead_one_radar.getStatus()) { - calib_frame_to_full_frame(s, lead_one_radar.getDRel(), leads[i].getYRel(), 1.22, &s->scene.lead_vertices[i]); + calib_frame_to_full_frame(s, lead_one_radar.getDRel(), lead_one_radar.getYRel(), 1.22, &s->scene.lead_vertices[i]); } } }